mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Pref: Reuse image array to improve memory performance
This commit is contained in:
@@ -18,7 +18,7 @@ class GuildLobby(GuildBase):
|
||||
Button: Button to enter guild report.
|
||||
"""
|
||||
# Find red color in the area of GUILD_REPORT_AVAILABLE
|
||||
image = color_similarity_2d(self.image_crop(GUILD_REPORT_AVAILABLE), color=(255, 8, 8))
|
||||
image = color_similarity_2d(self.image_crop(GUILD_REPORT_AVAILABLE, copy=False), color=(255, 8, 8))
|
||||
points = np.array(np.where(image > 221)).T[:, ::-1]
|
||||
if len(points):
|
||||
# The center of red dot
|
||||
|
||||
Reference in New Issue
Block a user