mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: OCR in campaign, commission, daily, hard, fleet, raid, oil
- Add Digit OCR
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from module.base.ocr import Digit
|
||||
from module.logger import logger
|
||||
from module.ocr.ocr import Digit
|
||||
from module.raid.assets import *
|
||||
from module.raid.run import RaidRun
|
||||
from module.ui.page import page_raid
|
||||
@@ -8,11 +8,10 @@ RECORD_OPTION = ('DailyRecord', 'raid')
|
||||
RECORD_SINCE = (0,)
|
||||
|
||||
LETTER = (57, 52, 255)
|
||||
BACK = (123, 178, 255)
|
||||
THRESHOLD = 75
|
||||
OCR_EASY = Digit(OCR_REMAIN_EASY, letter=LETTER, back=BACK, limit=15, threshold=THRESHOLD)
|
||||
OCR_NORMAL = Digit(OCR_REMAIN_NORMAL, letter=LETTER, back=BACK, limit=15, threshold=THRESHOLD)
|
||||
OCR_HARD = Digit(OCR_REMAIN_HARD, letter=LETTER, back=BACK, limit=15, threshold=THRESHOLD)
|
||||
THRESHOLD = 128
|
||||
OCR_EASY = Digit(OCR_REMAIN_EASY, letter=LETTER, threshold=THRESHOLD)
|
||||
OCR_NORMAL = Digit(OCR_REMAIN_NORMAL, letter=LETTER, threshold=THRESHOLD)
|
||||
OCR_HARD = Digit(OCR_REMAIN_HARD, letter=LETTER, threshold=THRESHOLD)
|
||||
|
||||
|
||||
class RaidDaily(RaidRun):
|
||||
|
||||
Reference in New Issue
Block a user