mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-17 00:15:13 +00:00
fix(cafe): apply mask
This commit is contained in:
parent
b4c47e2de2
commit
f21a97e08d
@ -72,7 +72,7 @@ class Cafe(UI):
|
|||||||
def _get_clickable_buttons(self, threshold=0.8, offset=(0, 0)):
|
def _get_clickable_buttons(self, threshold=0.8, offset=(0, 0)):
|
||||||
image = self.device.image
|
image = self.device.image
|
||||||
h, w = image.shape[:2]
|
h, w = image.shape[:2]
|
||||||
cv2.rectangle(image, (0, 10), (w - 25, h - 10), (0, 0, 0), 50)
|
image = cv2.rectangle(image, (0, 10), (w - 25, h - 10), (0, 0, 0), 50)
|
||||||
image = self._extract_clickable_from_image(image)
|
image = self._extract_clickable_from_image(image)
|
||||||
points = self._match_clickable_points(image, threshold)
|
points = self._match_clickable_points(image, threshold)
|
||||||
points = self.merge_points(points)
|
points = self.merge_points(points)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user