mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
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:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user