feat: 增加纯数色匹配 (#14536)

* feat: 增加纯数色匹配

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: 更新 schema

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
uye
2025-10-28 01:41:25 +08:00
committed by GitHub
parent 9fdc16f24b
commit ed122d8100
12 changed files with 59 additions and 2 deletions

View File

@@ -749,6 +749,13 @@ asst::TaskPtr asst::TaskData::generate_match_task_info(
match_task_info_ptr->color_close,
default_ptr->color_close);
utils::get_and_check_value_or(
name,
task_json,
"pureColor",
match_task_info_ptr->pure_color,
default_ptr->pure_color);
return match_task_info_ptr;
}
@@ -1056,6 +1063,7 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
// specific
"cache", "colorScales", "colorWithClose", "maskRange", "method",
"rectMove", "roi", "specialParams", "templThreshold", "template",
"pureColor",
} },
{ AlgorithmType::OcrDetect,
{