From dd0366c59461596d3a21eac4421c5f1644bae0c3 Mon Sep 17 00:00:00 2001 From: gitlihang <2664129943@qq.com> Date: Thu, 4 Jun 2026 17:22:19 +0800 Subject: [PATCH] =?UTF-8?q?perf(customs):=E4=BC=98=E5=8C=96readme=E5=8F=8A?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=AF=B4=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gitlihang/output-ocr-result-log/README.md | 17 ++++++++++------- .../output-ocr-result-log/action/returnOCR.py | 4 ++-- .../output-ocr-result-log/maahub_meta.json | 4 ++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Storage/customs/gitlihang/output-ocr-result-log/README.md b/Storage/customs/gitlihang/output-ocr-result-log/README.md index f5453f1..5caae7a 100644 --- a/Storage/customs/gitlihang/output-ocr-result-log/README.md +++ b/Storage/customs/gitlihang/output-ocr-result-log/README.md @@ -1,6 +1,7 @@ -# PR Send Data wps +# UI日志界面上输出OCR结果 -在UI日志界面上显示OCR结果 +## 使用案例:答题 +对于答题,在答题完成后,通过ocr识别答题结果(例:正确率:9/10),输出到ui方便用户查看。 ## 功能 @@ -15,7 +16,7 @@ ## 使用方式 ### 输出及click动作(暂时只写了click动作,其他动作暂未写)。 - """ +``` "接受进入的副本名称": { "recognition": "OCR", "expected": [ @@ -48,9 +49,10 @@ action_key: 动作名称,用于判断动作类型,如Click、Move等 recognition_name: task任务名称,用于指定识别任务名称,返回该节点的结果。 return_text: 输出的描述,用于指定返回的描述 - click_target: 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。 + click_target: 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。 + +``` - """ ### 只输出,无动作 ``` "活动-三界奇缘-正确率": { @@ -83,7 +85,8 @@ ## 注意事项 - - 注意的值"custom_action_param" + - 注意"custom_action_param"参数 -feat(customs): 新增在UI日志界面上显示OCR结果。 \ No newline at end of file +feat(customs): 新增在UI日志界面上显示OCR结果。 +perf(customs):优化readme及任务说明。 \ No newline at end of file diff --git a/Storage/customs/gitlihang/output-ocr-result-log/action/returnOCR.py b/Storage/customs/gitlihang/output-ocr-result-log/action/returnOCR.py index 88b786c..93d072a 100644 --- a/Storage/customs/gitlihang/output-ocr-result-log/action/returnOCR.py +++ b/Storage/customs/gitlihang/output-ocr-result-log/action/returnOCR.py @@ -13,12 +13,12 @@ class ReturnOCR(CustomAction): "action_key": "Click", "recognition_name": "识别输出测试", "return_text": "输出的描述" - "click_target": [] # 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用 + "click_target": [] # 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用 } action_key: 动作名称,用于判断动作类型,如Click、Move等 recognition_name: task任务名称,用于指定识别任务名称,返回该节点的结果。 return_text: 输出的描述,用于指定返回的描述 - click_target: 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。 + click_target: 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。 """ def run( diff --git a/Storage/customs/gitlihang/output-ocr-result-log/maahub_meta.json b/Storage/customs/gitlihang/output-ocr-result-log/maahub_meta.json index b8b300a..bc2b469 100644 --- a/Storage/customs/gitlihang/output-ocr-result-log/maahub_meta.json +++ b/Storage/customs/gitlihang/output-ocr-result-log/maahub_meta.json @@ -1,14 +1,14 @@ { "id": "gitlihang/output-ocr-result-log", "title": "在UI日志界面上显示OCR结果", - "description": "在UI界面上显示OCR识别结果,方便用户查看任务进度和结果。", + "description": "在UI日志界面上显示重要节点OCR识别结果,方便用户查看任务进度和结果。", "author": "gitlihang", "source": "Maa_MHXY_MG", "sourceGithub": "https://github.com/gitlihang/Maa_MHXY_MG", "tags": ["ocr-result", "log", "ui"], "createdAt": "2026-06-04", "updatedAt": "2026-06-04", - "version": "1.0.0", + "version": "1.0.1", "mfwVersion": "5.X", "entry": "main.py", "readme": "./README.md",