mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Refactor: Do OCR on YUV color space to handle poor image quality
This commit is contained in:
@@ -3,7 +3,7 @@ import numpy as np
|
||||
from module.base.button import ButtonGrid
|
||||
from module.base.utils import *
|
||||
from module.logger import logger
|
||||
from module.ocr.ocr import Digit
|
||||
from module.ocr.ocr import Digit, DigitYuv
|
||||
from module.statistics.utils import *
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class AmountOcr(Digit):
|
||||
|
||||
|
||||
AMOUNT_OCR = AmountOcr([], threshold=96, name='Amount_ocr')
|
||||
PRICE_OCR = Digit([], letter=(255, 223, 57), threshold=32, name='Price_ocr')
|
||||
PRICE_OCR = DigitYuv([], letter=(255, 223, 57), threshold=128, name='Price_ocr')
|
||||
|
||||
|
||||
class Item:
|
||||
|
||||
Reference in New Issue
Block a user