mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Student card detection in tactical class
This commit is contained in:
@@ -112,9 +112,12 @@ class ModuleBase:
|
||||
"""Extract the area from image.
|
||||
|
||||
Args:
|
||||
button(Button): Button instance.
|
||||
button(Button, tuple): Button instance or area tuple.
|
||||
"""
|
||||
return self.device.image.crop(button.area)
|
||||
if isinstance(button, Button):
|
||||
return self.device.image.crop(button.area)
|
||||
else:
|
||||
return self.device.image.crop(button)
|
||||
|
||||
def image_color_count(self, button, color, threshold=221, count=50):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user