{
"schemaVersion": 1,
"id": "sample-screen-ocr-graph",
"name": "框选区域 → OCR → 日志",
"description": "运行后拖动框选区域,Enter 确认,Esc 取消;离线中英文 OCR。",
"kind": "Graph",
"graph": {
"nodes": [
{
"id": "start",
"capabilityId": "core.start",
"name": "开始",
"x": 120,
"y": 120,
"parameters": {},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "pick",
"capabilityId": "xfe.vision.selectRegion",
"name": "框选识别区域",
"x": 430,
"y": 120,
"parameters": {},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "ocr",
"capabilityId": "xfe.vision.ocr",
"name": "识别中英文",
"x": 740,
"y": 120,
"parameters": {
"region": {
"$node": "pick.region"
},
"language": "chi_sim+eng",
"scale": 2
},
"code": "",
"children": {},
"timeoutSeconds": 60,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "log",
"capabilityId": "core.log",
"name": "输出识别文本",
"x": 1050,
"y": 120,
"parameters": {
"message": {
"$node": "ocr.text"
}
},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "end",
"capabilityId": "core.end",
"name": "结束",
"x": 1360,
"y": 120,
"parameters": {
"result": {
"$node": "ocr"
}
},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
}
],
"edges": [
{
"id": "edge0",
"fromNode": "start",
"fromPort": "next",
"toNode": "pick",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge1",
"fromNode": "pick",
"fromPort": "next",
"toNode": "ocr",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge2",
"fromNode": "ocr",
"fromPort": "next",
"toNode": "log",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge3",
"fromNode": "log",
"fromPort": "next",
"toNode": "end",
"toPort": "in",
"kind": "Execution"
}
]
},
"code": "",
"inputs": [],
"outputs": [],
"inputDefaults": {},
"variables": {},
"pluginVersions": {
"xfe.vision": "1.1.0"
},
"triggers": [],
"modifiedAt": "2026-10-11T00:00:00+08:00"
}
{
"schemaVersion": 1,
"id": "sample-screen-ocr-graph",
"name": "框选区域 → OCR → 日志",
"description": "运行后拖动框选区域,Enter 确认,Esc 取消;离线中英文 OCR。",
"kind": "Graph",
"graph": {
"nodes": [
{
"id": "start",
"capabilityId": "core.start",
"name": "开始",
"x": 120,
"y": 120,
"parameters": {},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "pick",
"capabilityId": "xfe.vision.selectRegion",
"name": "框选识别区域",
"x": 430,
"y": 120,
"parameters": {},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "ocr",
"capabilityId": "xfe.vision.ocr",
"name": "识别中英文",
"x": 740,
"y": 120,
"parameters": {
"region": {
"$node": "pick.region"
},
"language": "chi_sim+eng",
"scale": 2
},
"code": "",
"children": {},
"timeoutSeconds": 60,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "log",
"capabilityId": "core.log",
"name": "输出识别文本",
"x": 1050,
"y": 120,
"parameters": {
"message": {
"$node": "ocr.text"
}
},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
},
{
"id": "end",
"capabilityId": "core.end",
"name": "结束",
"x": 1360,
"y": 120,
"parameters": {
"result": {
"$node": "ocr"
}
},
"code": "",
"children": {},
"timeoutSeconds": 0,
"retryCount": 0,
"retryDelayMilliseconds": 500
}
],
"edges": [
{
"id": "edge0",
"fromNode": "start",
"fromPort": "next",
"toNode": "pick",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge1",
"fromNode": "pick",
"fromPort": "next",
"toNode": "ocr",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge2",
"fromNode": "ocr",
"fromPort": "next",
"toNode": "log",
"toPort": "in",
"kind": "Execution"
},
{
"id": "edge3",
"fromNode": "log",
"fromPort": "next",
"toNode": "end",
"toPort": "in",
"kind": "Execution"
}
]
},
"code": "",
"inputs": [],
"outputs": [],
"inputDefaults": {},
"variables": {},
"pluginVersions": {
"xfe.vision": "1.1.0"
},
"triggers": [],
"modifiedAt": "2026-10-11T00:00:00+08:00"
}