fix: 图像与OCR 检测报告问题全量修复(P0/P1/P2/P3)
- P0-1: GetOcrTextNew 传图键补 uiSelector, 组件恢复可用 - P1-1: Image_Click 全版本 position 生效(九宫格锚点+自定义偏移 JSON), catalog 补下拉选项 - P1-2: Click_V3 click_key 生效(左/右/中键/双击), catalog 补选项 - P1-3: GetOcrTable 按垂直中心聚合成行列(行内按 x 排序), showTable 写流程数据表(与 Bivartable 共享 __rpaDatabook), isExcel 用 exceljs 另存并处理 res/randomString 占位 - P2-1: Find_V1/Click_V3 find_range 生效(整个屏幕/指定窗口/指定区域), 窗口模式前置+取矩形裁剪, 坐标平移回屏幕系 - P2-2(补): Image_Screenshot 空路径兜底到流程证据目录 - P3-1: accuracy2 无特征匹配层实现, catalog 隐藏并注明 - P3-2: show_track=1 时鼠标 20 步插值平滑移动后点击 - P3-3: 截屏/Find 换 desktopCapturer(去掉逐次 Add-Type); 新增 vision-helpers.test.ts 12 项单测(区域解析/边界夹取/裁剪/九宫格) - 回归: typecheck 通过; vitest 256 过(4 失败为桌面/PDF 环境遗留); 报告文档已标注修复状态
This commit is contained in:
1 parent
342145cc46
commit
ba17d6dc2a
5 files changed
+404
-29
No files matched your search
+128
-8
@@ -61583,7 +61583,45 @@
|
||||
"placeholder": "",
|
||||
"description": "",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "中心",
|
||||
"value": "center"
|
||||
},
|
||||
{
|
||||
"label": "左上",
|
||||
"value": "leftTop"
|
||||
},
|
||||
{
|
||||
"label": "上",
|
||||
"value": "top"
|
||||
},
|
||||
{
|
||||
"label": "右上",
|
||||
"value": "rightTop"
|
||||
},
|
||||
{
|
||||
"label": "左",
|
||||
"value": "left"
|
||||
},
|
||||
{
|
||||
"label": "右",
|
||||
"value": "right"
|
||||
},
|
||||
{
|
||||
"label": "左下",
|
||||
"value": "leftBottom"
|
||||
},
|
||||
{
|
||||
"label": "下",
|
||||
"value": "bottom"
|
||||
},
|
||||
{
|
||||
"label": "右下",
|
||||
"value": "rightBottom"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "accuracy",
|
||||
@@ -61603,13 +61641,13 @@
|
||||
{
|
||||
"key": "accuracy2",
|
||||
"label": "特征相似度",
|
||||
"widget": "text",
|
||||
"widget": "hidden",
|
||||
"type": "string",
|
||||
"displayType": "text-expression",
|
||||
"required": true,
|
||||
"defaultValue": "0.2",
|
||||
"placeholder": "请输入相似度阈值",
|
||||
"description": "即需要查找的图片与模板图片的针对局部图像特征相似程度的阈值指标,与模板相似度共同决定组件运行结果。用户可自定义配置一个0~1区间的相似度取值(如0.55即55%相似度),0为完全不相似、1为完全一致,越大则命中阈值越高。(如无特殊需求,建议默认0.2)",
|
||||
"description": "【暂未启用】当前实现为纯像素模板匹配,无特征匹配层;字段保留以兼容旧流程",
|
||||
"advanced": false,
|
||||
"valueTypes": [
|
||||
"rpa_num"
|
||||
@@ -62791,7 +62829,21 @@
|
||||
"placeholder": "",
|
||||
"description": "请选择查找目标图像的范围",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "整个屏幕",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"label": "指定窗口",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"label": "指定区域",
|
||||
"value": "3"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "window_obj",
|
||||
@@ -63297,7 +63349,21 @@
|
||||
"placeholder": "",
|
||||
"description": "请选择查找目标图像的范围",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "整个屏幕",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"label": "指定窗口",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"label": "指定区域",
|
||||
"value": "3"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "window_obj",
|
||||
@@ -63366,7 +63432,17 @@
|
||||
"placeholder": "",
|
||||
"description": "",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "左键",
|
||||
"value": "left"
|
||||
},
|
||||
{
|
||||
"label": "右键",
|
||||
"value": "right"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "position",
|
||||
@@ -63379,7 +63455,45 @@
|
||||
"placeholder": "",
|
||||
"description": "",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "中心",
|
||||
"value": "center"
|
||||
},
|
||||
{
|
||||
"label": "左上",
|
||||
"value": "leftTop"
|
||||
},
|
||||
{
|
||||
"label": "上",
|
||||
"value": "top"
|
||||
},
|
||||
{
|
||||
"label": "右上",
|
||||
"value": "rightTop"
|
||||
},
|
||||
{
|
||||
"label": "左",
|
||||
"value": "left"
|
||||
},
|
||||
{
|
||||
"label": "右",
|
||||
"value": "right"
|
||||
},
|
||||
{
|
||||
"label": "左下",
|
||||
"value": "leftBottom"
|
||||
},
|
||||
{
|
||||
"label": "下",
|
||||
"value": "bottom"
|
||||
},
|
||||
{
|
||||
"label": "右下",
|
||||
"value": "rightBottom"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "accuracy",
|
||||
@@ -87855,7 +87969,13 @@
|
||||
"placeholder": "",
|
||||
"description": "",
|
||||
"advanced": false,
|
||||
"valueTypes": []
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "本地图片",
|
||||
"value": "0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "uiSelector",
|
||||
|
||||
Reference in new issue
Block a user