mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: [EN] Handle OCR error on daily quests
This commit is contained in:
parent
488f6c814d
commit
59b3c59f99
@ -20,6 +20,8 @@ class TrailblazePowerOcr(DigitCounter):
|
||||
# The trailblaze power icon is recognized as 买
|
||||
# OCR_TRAILBLAZE_POWER includes the icon because the length varies by value
|
||||
result = re.sub(r'[买米装:()]', '', result)
|
||||
# 61240 -> 6/240
|
||||
result = re.sub(r'1240$', '/240', result)
|
||||
return result
|
||||
|
||||
|
||||
|
@ -39,6 +39,12 @@ class DailyQuestOcr(Ocr):
|
||||
result = "进行中"
|
||||
if "已领取" in result:
|
||||
result = "已领取"
|
||||
if self.lang == 'en':
|
||||
result = result.replace('wor(d', 'world')
|
||||
if "progress" in result.lower():
|
||||
result = "In Progress"
|
||||
if "claimed" in result.lower():
|
||||
result = "Claimed"
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user