mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Fix: Misspelling & Line-end spaces
This commit is contained in:
@@ -221,7 +221,7 @@ class Button(Resource):
|
||||
def match_binary(self, image, offset=30, threshold=0.85):
|
||||
"""Detects button by template matching. To Some button, its location may not be static.
|
||||
This method will apply template matching under binarization.
|
||||
|
||||
|
||||
Args:
|
||||
image: Screenshot.
|
||||
offset (int, tuple): Detection area offset.
|
||||
@@ -241,7 +241,7 @@ class Button(Resource):
|
||||
else:
|
||||
offset = np.array((-3, -offset, 3, offset))
|
||||
image = crop(image, offset + self.area)
|
||||
|
||||
|
||||
if self.is_gif:
|
||||
for template in self.image_binary:
|
||||
# graying
|
||||
|
||||
@@ -124,7 +124,7 @@ class Template(Resource):
|
||||
def match_binary(self, image, similarity=0.85):
|
||||
"""
|
||||
Use template match after binarization.
|
||||
|
||||
|
||||
Args:
|
||||
image:
|
||||
similarity (float): 0 to 1.
|
||||
|
||||
Reference in New Issue
Block a user