1
0
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:
LmeSzinc
2023-07-20 22:27:27 +08:00
parent 8ace0e22d2
commit b5d93a9e1a
2 changed files with 33 additions and 4 deletions

View File

@@ -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