refactor: 找图族组件统一新管线(Exists/Location/Wait/Move迁至虚拟桌面+相似度语义), 面板只留V1/V2最新版

This commit is contained in:
yu committed 2026-11-03 13:44:59 +08:00
1 parent 6027895d4d
commit d4f27cdaab
4 files changed
+122 -111

No files matched your search

+17 -14
View File
@@ -3,9 +3,9 @@
"generatedAt": "2026-11-02T04:56:17.341Z",
"policy": "同名能力按目标域、协议和最新版本保留主能力;重复旧版本仅隐藏,不删除执行器",
"editableBefore": 894,
"keep": 657,
"hide": 237,
"editableAfter": 657,
"keep": 654,
"hide": 240,
"editableAfter": 654,
"decisions": [
{
"id": "Trigger.Manual",
@@ -3355,7 +3355,7 @@
"name": "查找图像",
"canonical": "Image_Find_V1",
"status": "hide",
"reason": "同名旧版本或重复别名,保留执行兼容"
"reason": "同名旧版本, 保留执行兼容"
},
{
"id": "Image_Base64Encode",
@@ -3374,7 +3374,7 @@
"name": "等待图像",
"canonical": "Image_Wait_V1",
"status": "hide",
"reason": "同名旧版本或重复别名,保留执行兼容"
"reason": "同名旧版本, 保留执行兼容"
},
{
"id": "Image_Exists_V1",
@@ -3387,19 +3387,21 @@
"name": "判断图像",
"canonical": "Image_Exists_V1",
"status": "hide",
"reason": "同名旧版本或重复别名,保留执行兼容"
"reason": "同名旧版本, 保留执行兼容"
},
{
"id": "Image_Location",
"name": "图像位置",
"status": "keep",
"reason": "唯一能力"
"status": "hide",
"reason": "与查找图像功能重复, 统一由 Find_V1 提供坐标返回",
"canonical": "Image_Find_V1"
},
{
"id": "Image_Location_V1",
"name": "获取图像位置",
"status": "keep",
"reason": "唯一能力"
"status": "hide",
"reason": "与查找图像功能重复, 统一由 Find_V1 提供坐标返回",
"canonical": "Image_Find_V1"
},
{
"id": "Image_CropImg",
@@ -3422,15 +3424,16 @@
{
"id": "Image_Move_V1",
"name": "移动到图像",
"status": "keep",
"reason": "目标域 / 协议内的最新主版本"
"status": "hide",
"reason": "同名旧版本, 保留执行兼容",
"canonical": "Image_Move_V2"
},
{
"id": "Image_Move",
"name": "移动到图像",
"canonical": "Image_Move_V1",
"canonical": "Image_Move_V2",
"status": "hide",
"reason": "同名旧版本或重复别名,保留执行兼容"
"reason": "同名旧版本, 保留执行兼容"
},
{
"id": "Ini_DeleteKey",
+57 -80
View File
@@ -68050,14 +68050,9 @@
"key": "find_range",
"label": "图像查找范围",
"widget": "select",
"type": "string",
"displayType": "dropDownSelect",
"required": false,
"defaultValue": "1",
"placeholder": "",
"description": "请选择查找目标图像的范围",
"advanced": false,
"valueTypes": [],
"required": false,
"options": [
{
"label": "整个屏幕",
@@ -68066,83 +68061,36 @@
{
"label": "指定窗口",
"value": "2"
},
{
"label": "指定区域",
"value": "3"
}
]
],
"description": "在整个虚拟桌面(含副屏)中查找,或仅在指定窗口范围内查找"
},
{
"key": "window_obj",
"label": "窗口对象",
"widget": "text",
"type": "string",
"displayType": "text-expression",
"required": true,
"defaultValue": "",
"placeholder": "",
"description": "目标窗口对象;留空则作用于当前活动窗口",
"advanced": false,
"valueTypes": [
"rpa_window_new"
]
},
{
"key": "action",
"label": "action",
"widget": "region",
"type": "object",
"displayType": "getScreenShot",
"required": false,
"defaultValue": "",
"placeholder": "{\"x\":0,\"y\":0,\"width\":100,\"height\":50}",
"description": "区域坐标 JSON;点右侧「屏幕框选」在屏幕上框选生成",
"advanced": false,
"valueTypes": []
},
{
"key": "position",
"label": "position",
"widget": "region",
"type": "object",
"displayType": "screenShotValue",
"required": false,
"defaultValue": "",
"placeholder": "{\"x\":0,\"y\":0,\"width\":100,\"height\":50}",
"description": "区域坐标 JSON;点右侧「屏幕框选」在屏幕上框选生成",
"advanced": false,
"valueTypes": []
"description": "目标窗口标题,留空则作用于当前活动窗口;点「选窗口」从可见窗口列表中选择"
},
{
"key": "image",
"label": "目标图像",
"widget": "text",
"type": "string",
"displayType": "imageSelector",
"required": true,
"defaultValue": "",
"placeholder": "截取或选择图像",
"description": "图片文件的完整路径,用于匹配或识别;点右侧按钮选择文件",
"advanced": false,
"valueTypes": [
"rpa_str"
]
"required": true,
"description": "模板图片文件的完整路径,用于匹配识别;点右侧「屏幕截取」可框选屏幕上的目标图案"
},
{
"key": "accuracy",
"label": "相似度",
"widget": "hidden",
"type": "string",
"displayType": "hidden",
"label": "模板相似度",
"widget": "similaritySlider",
"displayType": "similaritySlider",
"defaultValue": "0.9",
"required": true,
"defaultValue": "0.95",
"placeholder": "请输入相似度阈值",
"description": "模板相似度阈值(0~1,越大越严格):0.9 表示屏幕上至少 90% 像素与模板一致才算找到。框选的模板与实际界面光照/渲染略有差异时可适当调低,如无特殊需求建议 0.8。",
"advanced": false,
"valueTypes": [
"rpa_num"
]
"description": "相似度阈值(0~1,越大越严格):0.9 表示屏幕上至少 90% 像素与模板一致才算找到。建议 0.8~0.9。"
}
],
"output": {
@@ -68199,30 +68147,59 @@
"risk": "low",
"fields": [
{
"key": "image",
"label": "图片路径",
"widget": "region",
"type": "object",
"displayType": "screenShot",
"key": "find_range",
"label": "图像查找范围",
"widget": "select",
"displayType": "dropDownSelect",
"defaultValue": "1",
"required": false,
"options": [
{
"label": "整个屏幕",
"value": "1"
},
{
"label": "指定窗口",
"value": "2"
}
],
"description": "在整个虚拟桌面(含副屏)中查找,或仅在指定窗口范围内查找"
},
{
"key": "window_obj",
"label": "窗口对象",
"widget": "text",
"displayType": "text-expression",
"defaultValue": "",
"placeholder": "",
"description": "图片文件的完整路径,用于匹配或识别;点右侧按钮选择文件",
"advanced": false,
"valueTypes": []
"required": false,
"description": "目标窗口标题,留空则作用于当前活动窗口;点「选窗口」从可见窗口列表中选择"
},
{
"key": "image",
"label": "目标图像",
"widget": "text",
"displayType": "imageSelector",
"defaultValue": "",
"required": true,
"description": "模板图片文件的完整路径,用于匹配识别;点右侧「屏幕截取」可框选屏幕上的目标图案"
},
{
"key": "accuracy",
"label": "相似度",
"widget": "text",
"type": "string",
"label": "模板相似度",
"widget": "similaritySlider",
"displayType": "similaritySlider",
"defaultValue": "0.9",
"required": true,
"description": "相似度阈值(0~1,越大越严格):0.9 表示屏幕上至少 90% 像素与模板一致才算找到。建议 0.8~0.9。"
},
{
"key": "timeout",
"label": "等待超时(秒)",
"widget": "number",
"displayType": "text-expression",
"defaultValue": "0",
"required": false,
"defaultValue": "0.8",
"placeholder": "输入内容或 ${变量}",
"description": "模板相似度阈值(0~1,越大越严格):0.9 表示屏幕上至少 90% 像素与模板一致才算找到。框选的模板与实际界面光照/渲染略有差异时可适当调低,如无特殊需求建议 0.8。",
"advanced": false,
"valueTypes": []
"description": "大于 0 时在该时间内每隔 0.3 秒重试查找,超时仍未找到才返回 false"
}
],
"output": {