XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEWorkflow

【WinUI】XFE基于windows的工作流

公开
关注 0 Fork 0 Star 0
UTF-8
{
  "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"
}