mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-19 21:13:19 +08:00
Fix: fleet_2.in_use() when using Akane Shinjo skin
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user