mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 13:17:00 +08:00
Fix: [EN] '/' is missing in raid daily ocr
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
import module.config.server as server
|
||||||
from module.campaign.campaign_event import CampaignEvent
|
from module.campaign.campaign_event import CampaignEvent
|
||||||
from module.campaign.run import OCR_OIL
|
from module.campaign.run import OCR_OIL
|
||||||
from module.combat.assets import *
|
from module.combat.assets import *
|
||||||
@@ -82,7 +83,11 @@ def raid_ocr(raid, mode):
|
|||||||
return RaidCounter(button, letter=(214, 231, 219), threshold=128)
|
return RaidCounter(button, letter=(214, 231, 219), threshold=128)
|
||||||
elif raid == 'IRIS':
|
elif raid == 'IRIS':
|
||||||
# Font is not in model 'azur_lane', so use general ocr model
|
# Font is not in model 'azur_lane', so use general ocr model
|
||||||
return DigitCounter(button, letter=(148, 138, 123), threshold=128, lang='cnocr')
|
if server.server == 'en':
|
||||||
|
# Bold in EN
|
||||||
|
return RaidCounter(button, letter=(148, 138, 123), threshold=80, lang='cnocr')
|
||||||
|
else:
|
||||||
|
return DigitCounter(button, letter=(148, 138, 123), threshold=128, lang='cnocr')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise ScriptError(f'Raid entrance asset not exists: {key}')
|
raise ScriptError(f'Raid entrance asset not exists: {key}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user