1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-21 05:31:54 +08:00
This commit is contained in:
GH Action - Upstream Sync
2026-07-17 21:03:13 +00:00
7 changed files with 26 additions and 8 deletions

View File

@@ -273,9 +273,15 @@ class FleetOperator:
# https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5678
# no ship is in color (71, 70, 63)
color = cv2.mean(image)[:3]
# Perseus skin
if color_similar(color, (224, 154, 114), threshold=30):
return True
# Akane Shinjo skin: Room of Secrets
# special fix for fleet card bottom area having a bluish background color
if color_similar(color, (124, 141, 171), threshold=30):
return True
gray = rgb2gray(image)
return np.std(gray.flatten(), ddof=1) > self.FLEET_IN_USE_STD