Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Storage/customs/gitlihang/output-ocr-result-log/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# PR Send Data wps
# UI日志界面上输出OCR结果

在UI日志界面上显示OCR结果
## 使用案例:答题
对于答题,在答题完成后,通过ocr识别答题结果(例:正确率:9/10),输出到ui方便用户查看。
Comment on lines +3 to +4
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (typo): 建议将 “OCR” 和 “UI” 大写以保持一致性。

在本段中,你当前使用的是小写的 “ocr” 和 “ui”,而在其他地方(例如标题)是大写形式。请在这里也改为 “OCR” 和 “UI”,以保持风格一致。

Suggested change
## 使用案例:答题
对于答题,在答题完成后,通过ocr识别答题结果(例:正确率:9/10),输出到ui方便用户查看
## 使用案例:答题
对于答题,在答题完成后,通过OCR识别答题结果(例:正确率:9/10),输出到UI方便用户查看
Original comment in English

suggestion (typo): Consider capitalizing “OCR” and “UI” for consistency.

In this section you currently use lowercase “ocr” and “ui”, while elsewhere (e.g., the title) they’re uppercase. Please update them here to “OCR” and “UI” for consistency.

Suggested change
## 使用案例:答题
对于答题,在答题完成后,通过ocr识别答题结果(例:正确率:9/10),输出到ui方便用户查看
## 使用案例:答题
对于答题,在答题完成后,通过OCR识别答题结果(例:正确率:9/10),输出到UI方便用户查看


## 功能

Expand All @@ -15,7 +16,7 @@

## 使用方式
### 输出及click动作(暂时只写了click动作,其他动作暂未写)。
"""
```
"接受进入的副本名称": {
"recognition": "OCR",
"expected": [
Expand Down Expand Up @@ -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,则默认点击识别结果的中心位置。

```

"""
### 只输出,无动作
```
"活动-三界奇缘-正确率": {
Expand Down Expand Up @@ -83,7 +85,8 @@

## 注意事项

- 注意的值"custom_action_param"
- 注意"custom_action_param"参数


feat(customs): 新增在UI日志界面上显示OCR结果。
feat(customs): 新增在UI日志界面上显示OCR结果。
perf(customs):优化readme及任务说明。
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class ReturnOCR(CustomAction):
"action_key": "Click",
"recognition_name": "识别输出测试",
"return_text": "输出的描述"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk):return_text 字段后缺少结尾逗号会导致语法错误。

示例负载在 return_text 这一行之后缺少逗号,因此这个字典字面量是无效的,如果被复制粘贴将会报错。请在 "输出的描述" 后面补充一个逗号以修正语法。

Original comment in English

issue (bug_risk): Missing trailing comma after the return_text field will cause a syntax error.

The example payload is missing a comma after the return_text line, so the dict literal is invalid and will fail if copy-pasted. Please add a trailing comma after "输出的描述" to correct the syntax.

"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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading