mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Refactor: Rename main configs
- Faster chapter selection and page_campaign - Rename some old Chinglish variables in map info
This commit is contained in:
@@ -5,7 +5,6 @@ from module.base.decorator import Config
|
||||
from module.base.utils import *
|
||||
from module.exception import CampaignNameError
|
||||
from module.logger import logger
|
||||
from module.map_detection.utils import Points
|
||||
from module.ocr.ocr import Ocr
|
||||
from module.template.assets import *
|
||||
|
||||
@@ -153,7 +152,8 @@ class CampaignOcr(ModuleBase):
|
||||
self.stage_entrance = {}
|
||||
buttons = self.campaign_extract_name_image(image)
|
||||
if len(buttons) == 0:
|
||||
logger.warning('No stage found.')
|
||||
logger.info('No stage found.')
|
||||
raise CampaignNameError
|
||||
|
||||
ocr = Ocr(buttons, name='campaign', letter=(255, 255, 255), threshold=128,
|
||||
alphabet='0123456789ABCDEFGHIJKLMNPQRSTUVWXYZ-')
|
||||
|
||||
Reference in New Issue
Block a user