mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 05:17:24 +08:00
Jp font 20241011 (#4272)
* tmp: [JP] commission assets * tmp: [JP] asset RESEARCH_COST_CHECKER * tmp: [JP] assets in mail batch * tmp: [JP] opsi get_zone_name color * tmp: [JP] get_coin and get_oil color * tmp: [JP] ash_collect_status and get_yellow_coins color * upd: [JP] resize commission assets recognize size
This commit is contained in:
@@ -3,6 +3,8 @@ import re
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
import module.config.server as server
|
||||
|
||||
from module.base.timer import Timer
|
||||
from module.base.utils import color_similar, get_color
|
||||
from module.campaign.assets import OCR_COIN, OCR_EVENT_PT, OCR_OIL, OCR_OIL_CHECK
|
||||
@@ -10,7 +12,10 @@ from module.logger import logger
|
||||
from module.ocr.ocr import Digit, Ocr
|
||||
from module.ui.ui import UI
|
||||
|
||||
OCR_COIN = Digit(OCR_COIN, name='OCR_COIN', letter=(239, 239, 239), threshold=128)
|
||||
if server.server != 'jp':
|
||||
OCR_COIN = Digit(OCR_COIN, name='OCR_COIN', letter=(239, 239, 239), threshold=128)
|
||||
else:
|
||||
OCR_COIN = Digit(OCR_COIN, name='OCR_COIN', letter=(201, 201, 201), threshold=128)
|
||||
|
||||
|
||||
class PtOcr(Ocr):
|
||||
@@ -84,7 +89,10 @@ class CampaignStatus(UI):
|
||||
color = get_color(self.device.image, OCR_OIL_CHECK.button)
|
||||
if color_similar(color, OCR_OIL_CHECK.color):
|
||||
# Original color
|
||||
ocr = Digit(OCR_OIL, name='OCR_OIL', letter=(247, 247, 247), threshold=128)
|
||||
if server.server != 'jp':
|
||||
ocr = Digit(OCR_OIL, name='OCR_OIL', letter=(247, 247, 247), threshold=128)
|
||||
else:
|
||||
ocr = Digit(OCR_OIL, name='OCR_OIL', letter=(201, 201, 201), threshold=128)
|
||||
elif color_similar(color, (59, 59, 64)):
|
||||
# With black overlay
|
||||
ocr = Digit(OCR_OIL, name='OCR_OIL', letter=(165, 165, 165), threshold=128)
|
||||
|
||||
Reference in New Issue
Block a user