docs: schema for templThreshold array or number

This commit is contained in:
David
2023-10-08 21:18:35 +02:00
parent d022ff6971
commit 68b7e28adc
2 changed files with 14 additions and 2 deletions

View File

@@ -158,7 +158,13 @@
"description": "可选项,要匹配的图片文件名\n不填时写默认 \"任务名.png\""
},
"templThreshold": {
"type": "number",
"type": [
"array",
"number"
],
"items": {
"type": "number"
},
"default": 0.8,
"description": "可选项,图片模板匹配得分的阈值,超过阈值才认为识别到了。\n默认 0.8, 可根据日志查看实际得分是多少"
},

View File

@@ -158,7 +158,13 @@
"description": "Optional, the file name of the image to be matched\nDefauts to \"task name.png\", If not filled"
},
"templThreshold": {
"type": "number",
"type": [
"array",
"number"
],
"items": {
"type": "number"
},
"default": 0.8,
"description": "Optional, the threshold of the matching score of the template image, it is considered recognised if it exceeds the threshold\nDefaults to 0.8, you can check what the actual score is based on the log"
},