mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Refactor: Use numpy image cache instead of pillow image
This commit is contained in:
@@ -22,7 +22,7 @@ class MissionHandler(GlobeOperation, ZoneManager):
|
||||
"""
|
||||
area = (341, 72, 1217, 648)
|
||||
# Points of the yellow `!`
|
||||
image = color_similarity_2d(self.image_area(area), color=(255, 207, 66))
|
||||
image = color_similarity_2d(self.image_crop(area), color=(255, 207, 66))
|
||||
points = np.array(np.where(image > 235)).T[:, ::-1]
|
||||
if not len(points):
|
||||
logger.warning('Unable to find mission on OS mission map')
|
||||
|
||||
Reference in New Issue
Block a user