Skip to content

Commit

Permalink
Merge pull request #157 from danfoster/compare_exists_method
Browse files Browse the repository at this point in the history
`compare()` throws a `NameError`
  • Loading branch information
glitchassassin authored Aug 6, 2020
2 parents 7adadfa + a7fca20 commit 75e545d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lackey/RegionMatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def findBest(self, pattern):
return best_match
def compare(self, image):
""" Compares the region to the specified image """
return exists(Pattern(image), 0)
return self.exists(Pattern(image), 0)
def findText(self, text, timeout=None):
""" OCR function """
raise NotImplementedError()
Expand Down

0 comments on commit 75e545d

Please sign in to comment.