mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Missing usage of MAP_ENEMY_GENRE_SIMILARITY
This commit is contained in:
parent
0cc06921af
commit
16f699754c
@ -200,7 +200,7 @@ class GridPredictor:
|
||||
shape = tuple(np.round(np.array((60, 60)) * scale).astype(int))
|
||||
image_dic[scale] = rgb2gray(self.relative_crop((-0.5, -1, 0.5, 0), shape=shape))
|
||||
|
||||
if template.match(image_dic[scale]):
|
||||
if template.match(image_dic[scale], similarity=self.config.MAP_ENEMY_GENRE_SIMILARITY):
|
||||
return name
|
||||
|
||||
return None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user