mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 17:29:04 +08:00
Fix: Wrong color channel in RarityScanner
This commit is contained in:
parent
13b9c3a6a3
commit
aa5f910e3a
@ -191,7 +191,7 @@ class FleetScanner(Scanner):
|
||||
image = ~image
|
||||
# Use only the green channel
|
||||
b, g, r = cv2.split(image)
|
||||
image = cv2.merge([b, b, b])
|
||||
image = cv2.merge([g, g, g])
|
||||
# image[:, :, 0] = image[:, :, 2] = image[:, :, 1]
|
||||
# Graying and binarizing
|
||||
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user