Skip to content

Commit 6aa544e

Browse files
committed
FIX: missing argument on 'locate_all_opencv()'
1 parent 1b7d79f commit 6aa544e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

botcity/web/bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ def get_element_coords(self, label, x=None, y=None, width=None, height=None, mat
764764
if not best:
765765
print('Warning: Ignoring best=False for now. It will be supported in the future.')
766766

767-
it = cv2find.locate_all_opencv(self.state.map_images[label], region=region, confidence=matching)
767+
haystack = self.get_screen_image()
768+
it = cv2find.locate_all_opencv(self.state.map_images[label], haystack_image=haystack, region=region, confidence=matching)
768769
try:
769770
ele = next(it)
770771
except StopIteration:

0 commit comments

Comments
 (0)