feat: change replace_full so it's set in tasks

previously in set_replace
This commit is contained in:
Yifan Liu
2023-02-24 15:32:16 -06:00
parent 1dc1530152
commit d7265bfb40
8 changed files with 12 additions and 14 deletions

View File

@@ -191,7 +191,7 @@ bool asst::BattleHelper::update_deployment(bool init, const cv::Mat& reusable)
auto analyze = [&](OcrImageAnalyzer& name_analyzer) {
name_analyzer.set_image(name_image);
name_analyzer.set_task_info(oper_name_ocr_task_name());
name_analyzer.set_replace(Task.get<OcrTaskInfo>("CharsNameOcrReplace")->replace_map, true);
name_analyzer.set_replace(Task.get<OcrTaskInfo>("CharsNameOcrReplace")->replace_map);
if (!name_analyzer.analyze()) {
return std::string();
}