fix: schema error

This commit is contained in:
uye
2025-08-13 13:10:33 +08:00
parent 89f6330e48
commit 16968ee2ef
3 changed files with 28 additions and 12 deletions

View File

@@ -250,12 +250,20 @@
"description": "可选项,当 method 为 HSVCount 或 RGBCount 时有效,默认为 true\n数色时是否先用闭运算处理掩码范围。\n闭运算可以填补小黑点一般会提高数色匹配效果但若图片中包含文字建议设为 false"
},
"method": {
"type": ["string", "array"],
"items": {
"type": "string"
},
"oneOf": [
{
"type": "string",
"enum": ["Ccoeff", "RGBCount", "HSVCount"]
},
{
"type": "array",
"items": {
"type": "string",
"enum": ["Ccoeff", "RGBCount", "HSVCount"]
}
}
],
"default": "Ccoeff",
"enum": ["Ccoeff", "RGBCount", "HSVCount"],
"description": "可选项,模板匹配算法,可以是列表\n不填写时默认为 Ccoeff\n - Ccoeff: 对颜色不敏感的模板匹配算法,对应 cv::TM_CCOEFF_NORMED\n - RGBCount: 对颜色敏感的模板匹配算法,先将待匹配区域和模板图片依据 colorScales 二值化,以 F1-score 为指标计算 RGB 颜色空间内的相似度,再将结果与 Ccoeff 的结果点积\n - HSVCount: 类似 RGBCount颜色空间换为 HSV"
}
},

View File

@@ -250,12 +250,20 @@
"description": "Optional when method is HSVCount or RGBCount, default true\nWhether to use morphological closing on mask range for color counting\nClosing fills small black dots, generally improves color matching but set false for text"
},
"method": {
"type": ["string", "array"],
"items": {
"type": "string"
},
"oneOf": [
{
"type": "string",
"enum": ["Ccoeff", "RGBCount", "HSVCount"]
},
{
"type": "array",
"items": {
"type": "string",
"enum": ["Ccoeff", "RGBCount", "HSVCount"]
}
}
],
"default": "Ccoeff",
"enum": ["Ccoeff", "RGBCount", "HSVCount"],
"description": "Optional, template matching algorithm, can be list\nDefault is Ccoeff when not specified\n- Ccoeff: Color-insensitive template matching, corresponds to cv::TM_CCOEFF_NORMED\n- RGBCount: Color-sensitive template matching, binary thresholds target area and template using colorScales, calculates similarity using F1-score in RGB color space, then dot products result with Ccoeff result\n- HSVCount: Similar to RGBCount, but uses HSV color space"
}
},

View File

@@ -516,14 +516,14 @@
"ChapterSwipeToTheLeft": {
"Doc": "滑动到最左",
"baseTask": "ChapterSlowlySwipeToTheLeft",
"specialParams": [150, 0, 0.5],
"specialParams": [150, 0, 0],
"next": ["#self"],
"maxTimes": 5
},
"ChapterSwipeToTheRight": {
"Doc": "滑动到最右",
"baseTask": "ChapterSlowlySwipeToTheRight",
"specialParams": [150, 0, 0.5],
"specialParams": [150, 0, 0],
"next": ["#self"],
"maxTimes": 10
},