mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Fix: [JP] Handle info_bar in research detect (#2890)
This commit is contained in:
@@ -5,7 +5,7 @@ from scipy import signal
|
||||
from module.base.decorator import cached_property
|
||||
from module.base.utils import *
|
||||
from module.logger import logger
|
||||
from module.ocr.ocr import Ocr
|
||||
from module.ocr.ocr import Ocr, Duration
|
||||
from module.research.assets import *
|
||||
from module.research.project_data import LIST_RESEARCH_PROJECT
|
||||
from module.statistics.utils import *
|
||||
@@ -257,8 +257,8 @@ def get_research_duration_jp(image):
|
||||
Returns:
|
||||
duration (int): number of seconds
|
||||
"""
|
||||
ocr = Ocr(DURATION_DETAIL, alphabet='0123456789:')
|
||||
duration = parse_time(ocr.ocr(image)).total_seconds()
|
||||
ocr = Duration(DURATION_DETAIL)
|
||||
duration = ocr.ocr(image).total_seconds()
|
||||
return duration
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user