perf.修改need_matchfullMatch

This commit is contained in:
zzyyyl
2022-05-07 00:55:45 +08:00
parent 7ea44668b0
commit ff79ca0a07
2 changed files with 3 additions and 3 deletions

View File

@@ -304,7 +304,7 @@
"SwipeLeftToStage1-7": {
"algorithm": "OcrDetect",
"action": "SlowlySwipeToTheLeft",
"need_match": true,
"fullMatch": true,
"text": [
"1-8",
"TR-10",
@@ -328,7 +328,7 @@
"SwipeRightToStage1-7": {
"algorithm": "OcrDetect",
"action": "SlowlySwipeToTheRight",
"need_match": true,
"fullMatch": true,
"text": [
"1-1",
"1-2",

View File

@@ -89,7 +89,7 @@ bool asst::TaskData::parse(const json::value& json)
for (const json::value& text : task_json.at("text").as_array()) {
ocr_task_info_ptr->text.emplace_back(text.as_string());
}
ocr_task_info_ptr->need_full_match = task_json.get("need_match", false);
ocr_task_info_ptr->need_full_match = task_json.get("fullMatch", false);
if (task_json.contains("ocrReplace")) {
for (const json::value& rep : task_json.at("ocrReplace").as_array()) {
ocr_task_info_ptr->replace_map.emplace(rep.as_array()[0].as_string(), rep.as_array()[1].as_string());