1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-16 09:17:22 +08:00
This commit is contained in:
GH Action - Upstream Sync
2025-08-25 11:19:11 +00:00
68 changed files with 490 additions and 56 deletions

View File

@@ -1,5 +1,6 @@
import numpy as np
import module.config.server as server
from module.base.button import ButtonGrid
from module.base.utils import *
from module.logger import logger
@@ -21,7 +22,13 @@ class AmountOcr(Digit):
AMOUNT_OCR = AmountOcr([], threshold=96, name='Amount_ocr')
PRICE_OCR = DigitYuv([], letter=(255, 223, 57), threshold=128, name='Price_ocr')
# UI update in 20250814, but server TW is still old UI.
if server.server == 'tw':
PRICE_OCR = DigitYuv([], letter=(255, 223, 57), threshold=128, name='Price_ocr')
elif server.server == 'jp':
PRICE_OCR = Digit([], lang='cnocr', letter=(205, 205, 205), threshold=128, name='Price_ocr')
else:
PRICE_OCR = Digit([], letter=(255, 255, 255), threshold=128, name='Price_ocr')
class Item: