fix: 修复理智识别在部分情况下会"/"识别为"|"

This commit is contained in:
status102
2023-09-01 10:58:16 +08:00
parent 3b8f94b4b2
commit a1d49369e8
2 changed files with 23 additions and 2 deletions

View File

@@ -3561,6 +3561,28 @@
20,
150,
40
],
"ocrReplace": [
[
"\\|",
"/"
],
[
"o",
"0"
],
[
"O",
"0"
],
[
"I",
"1"
],
[
"l",
"1"
]
]
},
"UseMedicine": {

View File

@@ -40,10 +40,9 @@ void asst::SanityBeforeStagePlugin::get_sanity()
LogTraceFunction;
// 直接摘抄博朗台部分DrGrandetTaskPlugin
//OCRer analyzer(imread(utils::path("debug") / utils::path("sanity_test.png")));
OCRer analyzer(ctrler()->get_image());
analyzer.set_task_info("SanityMatch");
analyzer.set_replace(Task.get<OcrTaskInfo>("NumberOcrReplace")->replace_map);
analyzer.set_use_char_model(false);
if (!analyzer.analyze()) {
return;