mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 12:08:01 +08:00
Add: GIF template multi-match
- Fix: IndexError when finding Hard campaign
This commit is contained in:
@@ -87,8 +87,7 @@ class CampaignOcr(ModuleBase):
|
||||
result = Points(result, config=self.config).group()
|
||||
|
||||
for point in result:
|
||||
point = point[::-1]
|
||||
button = tuple(np.append(point, point + template.image.shape[:2][::-1]))
|
||||
button = tuple(np.append(point, point + template.size))
|
||||
point = point + name_offset
|
||||
name = image.crop(np.append(point, point + name_size))
|
||||
name = extract_letters(name, letter=name_letter, threshold=name_thresh)
|
||||
|
||||
Reference in New Issue
Block a user