1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Fix: OCR in exercises

- Fix digit ocr when detecting empty image
This commit is contained in:
LmeSzinc
2020-07-15 04:33:39 +08:00
parent 0cc2fe2946
commit e690be1c85
7 changed files with 36 additions and 24 deletions

View File

@@ -1,10 +1,10 @@
from module.base.ocr import Digit
from module.exercise.assets import *
from module.exercise.combat import ExerciseCombat
from module.logger import logger
from module.ocr.ocr import Digit
from module.ui.ui import page_exercise
OCR_EXERCISE_REMAIN = Digit(OCR_EXERCISE_REMAIN, letter=(173, 247, 74), back=(66, 89, 140), limit=10)
OCR_EXERCISE_REMAIN = Digit(OCR_EXERCISE_REMAIN, letter=(173, 247, 74), threshold=128)
RECORD_OPTION = ('DailyRecord', 'exercise')
RECORD_SINCE = (0, 12, 18,)