1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-06 08:59:39 +08:00

Fix: Boss detected as siren in Pledge of the Radiant Court B2

This commit is contained in:
LmeSzinc
2022-06-03 02:05:40 +08:00
parent 2555588740
commit ecb5dba43b
3 changed files with 5 additions and 3 deletions

View File

@@ -6,9 +6,9 @@ from module.template.assets import TEMPLATE_ENEMY_BOSS
class EventGrid(Grid):
def predict_enemy_genre(self):
if not self.may_boss:
image = self.relative_crop((-0.55, -0.2, 0.45, 0.2), shape=(50, 20))
image = color_similarity_2d(image, color=(255, 150, 24))
image = self.relative_crop((-0.55, -0.2, 0.45, 0.2), shape=(50, 20))
image = color_similarity_2d(image, color=(255, 150, 24))
if image[image > 221].shape[0] > 200:
if TEMPLATE_ENEMY_BOSS.match(image, similarity=0.6):
return 'Siren_Siren'