libcvautomation/cva-match.html
2012-07-17 16:07:18 -04:00

55 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libcvautomation: </title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul></div>
<dl compact><dt><b>Author:</b></dt><dd>Bradlee Speice &lt;<a href="mailto:bspeice@uncc.edu">bspeice@uncc.edu</a>&gt; </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>7/11/2012 </dd></dl>
<h2><a class="anchor" name="usage">
Usage:</a></h2>
This program uses OpenCV in order to recognize an image within an image. The return code is how many matches were found - return 0 for no matches, 1 for one match, etc.<h2><a class="anchor" name="example">
Example Usage:</a></h2>
Match two images against the root X11 window:<p>
cva-match --x-root -s "&lt;image_name&gt;" -s "&lt;image_name_2&gt;"<p>
Match a root and sub image with a custom tolerance and search method<p>
cva-match -r "&lt;root_image&gt;" -s "&lt;image_name&gt;" -o 75 -m 1<h2><a class="anchor" name="options">
Full Options:</a></h2>
-h, --help: Display this usage message.<p>
-u, --usage: Display this usage message.<p>
-r, --root-image: Location of the root image to compare against.<p>
-s, --sub-image: Location of the sub-image to find in root.<p>
-p, --separator: Separator of the X and Y coordinates.<p>
-t, --tolerance: Set how strict the match is - 100 is recommended lowest value.<p>
<dl compact><dt><b>Note:</b></dt><dd>When using CCORR or CCOEFF tolerance works in opposite direction, so -50 is recommended highest value.</dd></dl>
-m, --search-method: Set which method is used to search for sub-images.<p>
<dl compact><dt><b>Note:</b></dt><dd>Search Methods: CV_TM_SQDIFF = 0, CV_TM_SQDIFF_NORMED = 1, CV_TM_CCORR = 2, CV_TM_CCORR_NORMED = 3, CV_TM_CCOEFF = 4, CV_TM_COEFF_NORMED = 5</dd></dl>
-x, --x-root[=DISPLAY]: Set the root image to come from X11<p>
<dl compact><dt><b>Note:</b></dt><dd>The DISPLAY variable is optional, not specifying it will cause X to use the default display (not specifically :0.0)</dd></dl>
-c, --center: The output points should be centered on the sub-image, rather than the top-left corner.<p>
-o, --sane-tolerance: Set the tolerance using a scale of 1-100, rather than INT_MIN to INT_MAX (100 ~= INT_MAX)<h2><a class="anchor" name="contact">
Contact Information:</a></h2>
Questions? Comments? Concerns? Suggestions? Send all feedback to Bradlee Speice at &lt;<a href="mailto:bspeice@uncc.edu">bspeice@uncc.edu</a>&gt; <hr size="1"><address style="align: right;"><small>Generated on Tue Jul 17 12:19:00 2012 for libcvautomation by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>