feat: 图片Base64编解码组件统一(Encode并入方向切换,Decode隐藏), 验证任务归并: 图像OCR未测任务 41->7 (Base64/CV/OCR票据卡证证照通用离线)
This commit is contained in:
1 parent
4486c57536
commit
8fdc62d98d
4 files changed
+96
-8
No files matched your search
+64
-7
@@ -67363,22 +67363,25 @@
|
||||
},
|
||||
{
|
||||
"id": "Image_Base64Encode",
|
||||
"name": "图片转base64编码",
|
||||
"name": "图片Base64编解码",
|
||||
"kind": "vendor",
|
||||
"group": "vision",
|
||||
"categories": [
|
||||
"image"
|
||||
],
|
||||
"categorySignature": "image",
|
||||
"description": "将图片转为base64编码。",
|
||||
"messageTemplate": "将图片 $1 转base64编码, 然后把结果保存到 $0",
|
||||
"description": "将图片文件转为 base64 编码,或将 base64 编码还原保存为图片文件。",
|
||||
"messageTemplate": "对图片执行 base64 $1 , 然后把结果保存到 $0",
|
||||
"baseType": "Image_Base64Encode",
|
||||
"functionName": "Image.Base64Encode",
|
||||
"functionCalls": [
|
||||
{
|
||||
"function": "Image.Base64Encode",
|
||||
"args": [
|
||||
"path"
|
||||
"mode",
|
||||
"path",
|
||||
"val",
|
||||
"output"
|
||||
],
|
||||
"assignTo": "var_name"
|
||||
}
|
||||
@@ -67395,6 +67398,29 @@
|
||||
"icon": "vision",
|
||||
"risk": "low",
|
||||
"fields": [
|
||||
{
|
||||
"key": "mode",
|
||||
"label": "转换方向",
|
||||
"widget": "radio",
|
||||
"type": "string",
|
||||
"displayType": "buttonGroup",
|
||||
"required": false,
|
||||
"defaultValue": "encode",
|
||||
"placeholder": "",
|
||||
"description": "编码:图片文件转为 base64 字符串;解码:base64 字符串还原保存为图片文件",
|
||||
"advanced": false,
|
||||
"valueTypes": [],
|
||||
"options": [
|
||||
{
|
||||
"label": "图片 → Base64",
|
||||
"value": "encode"
|
||||
},
|
||||
{
|
||||
"label": "Base64 → 图片",
|
||||
"value": "decode"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "path",
|
||||
"label": "图片对象",
|
||||
@@ -67404,17 +67430,48 @@
|
||||
"required": true,
|
||||
"defaultValue": "",
|
||||
"placeholder": "截取或选择图像",
|
||||
"description": "填写参数值,支持 ${变量} 引用上游输出",
|
||||
"description": "编码方向的源图片路径,支持 ${变量} 引用上游输出(如上游截图的保存路径)",
|
||||
"advanced": false,
|
||||
"valueTypes": [
|
||||
"rpa_str"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "val",
|
||||
"label": "Base64编码",
|
||||
"widget": "text",
|
||||
"type": "string",
|
||||
"displayType": "text-expression",
|
||||
"required": true,
|
||||
"defaultValue": "",
|
||||
"placeholder": "如 ${图片编码值}",
|
||||
"description": "解码方向的 base64 字符串,支持 ${变量} 引用上游输出;自动忽略 data:image/...;base64, 前缀",
|
||||
"advanced": false,
|
||||
"valueTypes": [
|
||||
"rpa_str"
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "output",
|
||||
"label": "图片保存路径",
|
||||
"widget": "file",
|
||||
"type": "object",
|
||||
"displayType": "selectFile",
|
||||
"required": false,
|
||||
"defaultValue": "",
|
||||
"placeholder": "如 D:\\files\\restored.png",
|
||||
"description": "解码方向的保存位置(含文件名);留空自动生成临时图片文件",
|
||||
"advanced": false,
|
||||
"valueTypes": [
|
||||
"rpa_str_file",
|
||||
"rpa_str"
|
||||
]
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"label": "输出到变量",
|
||||
"key": "var_name",
|
||||
"suggestedName": "图片编码值",
|
||||
"suggestedName": "结果值",
|
||||
"valueTypes": [
|
||||
"rpa_str"
|
||||
],
|
||||
@@ -67422,7 +67479,7 @@
|
||||
{
|
||||
"key": "var_name",
|
||||
"label": "输出到变量",
|
||||
"defaultValue": "图片编码值",
|
||||
"defaultValue": "结果值",
|
||||
"valueTypes": [
|
||||
"rpa_str"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user