feat: PipelineAnalyzer 支持使用灰度图匹配文字

This commit is contained in:
uye
2025-08-01 21:02:19 +08:00
parent e4453e5a33
commit 92bd4690cd
6 changed files with 16 additions and 7 deletions

View File

@@ -801,6 +801,12 @@ asst::TaskPtr asst::TaskData::generate_ocr_task_info(
"binThresholdUpper",
ocr_task_info_ptr->bin_threshold_upper,
default_ptr->bin_threshold_upper);
utils::get_and_check_value_or(
name,
task_json,
"useRaw",
ocr_task_info_ptr->use_raw,
default_ptr->use_raw);
return ocr_task_info_ptr;
}
@@ -1070,8 +1076,8 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
// specific
"cache", "fullMatch", "isAscii", "ocrReplace", "rectMove",
"replaceFull", "roi", "text", "withoutDet", "binThresholdLower",
"binThresholdUpper",
"replaceFull", "roi", "text", "withoutDet", "useRaw",
"binThresholdLower", "binThresholdUpper",
} },
{ AlgorithmType::FeatureMatch,
{