Find:
Find a given image
within monitor screen. If more than one similar picture find in the
screen, "find" will work with most similiar picture. Let me
explain "Pattern" Command
Class Pattern:
A pattern is used,
to associate an image file with additional attributes used in find
operations and when acting on a match object.
find(Pattern("India.png").similar(0.80).targetOffset(10,2))
Similarity:
Return a new Pattern
object containing the same attributes (image, click point) with the
minimum similarity set to the specified value.The value should be
between 0 and 1. The deafult value in 0.70 E.g. 0.70 or 0.80
TargetOffset(dx,
dy):
By default, the
click point is the center of the found match. By setting the target
offset, it is possible to specify a click point other than the
center. dx and dy will be used to calculate the position relative
to the center. E.g. targetOffset(10,2)
Highlight
(seconds):
This feature will
help to highlight in rectangle with red color if picture find on
screen.
No comments:
Post a Comment