1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Upd: OCR parameters for JP zone name recognition (#4600)

This commit is contained in:
guoh064
2025-02-23 22:16:08 +08:00
committed by GitHub
parent 6c081fd855
commit 887938ba60

View File

@@ -77,7 +77,7 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle
@Config.when(SERVER='jp')
def get_zone_name(self):
# For JP only
ocr = Ocr(MAP_NAME, lang='jp', letter=(185, 192, 201), threshold=127, name='OCR_OS_MAP_NAME')
ocr = Ocr(MAP_NAME, lang='jp', letter=(201, 218, 239), threshold=220, name='OCR_OS_MAP_NAME')
name = ocr.ocr(self.device.image)
self.is_zone_name_hidden = '安全' in name
# Remove punctuations