mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-29 11:03:18 +00:00
Fix: Update ocr model name
This commit is contained in:
parent
710e8d42df
commit
d3eef2cd24
@ -33,6 +33,7 @@ class DailyQuestOcr(Ocr):
|
|||||||
result = result.replace(";", "」")
|
result = result.replace(";", "」")
|
||||||
result = result.replace("了", "」")
|
result = result.replace("了", "」")
|
||||||
result = result.replace("宇审", "宇宙")
|
result = result.replace("宇审", "宇宙")
|
||||||
|
result = result.replace("凝带", "凝滞")
|
||||||
# 进行中」hbadarin
|
# 进行中」hbadarin
|
||||||
if "进行中" in result:
|
if "进行中" in result:
|
||||||
result = "进行中"
|
result = "进行中"
|
||||||
|
@ -28,7 +28,7 @@ class RogueCurioOcr(Ocr):
|
|||||||
|
|
||||||
def after_process(self, result):
|
def after_process(self, result):
|
||||||
result = super().after_process(result)
|
result = super().after_process(result)
|
||||||
if self.lang == 'ch':
|
if self.lang == 'cn':
|
||||||
replace_pattern_dict = {
|
replace_pattern_dict = {
|
||||||
"般": "骰",
|
"般": "骰",
|
||||||
"漂灭": "湮灭",
|
"漂灭": "湮灭",
|
||||||
|
@ -10,7 +10,7 @@ from tasks.rogue.keywords import *
|
|||||||
class RogueBonusOcr(Ocr):
|
class RogueBonusOcr(Ocr):
|
||||||
def after_process(self, result):
|
def after_process(self, result):
|
||||||
result = super().after_process(result)
|
result = super().after_process(result)
|
||||||
if self.lang == 'ch':
|
if self.lang == 'cn':
|
||||||
replace_pattern_dict = {
|
replace_pattern_dict = {
|
||||||
"[宇宝][宙审]": "宇宙",
|
"[宇宝][宙审]": "宇宙",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user