Skip to content

Commit 230f7ac

Browse files
authored
Merge pull request #5 from gitlihang/main
perf(customs):优化readme及任务说明。
2 parents d513984 + dd0366c commit 230f7ac

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

Storage/customs/gitlihang/output-ocr-result-log/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# PR Send Data wps
1+
# UI日志界面上输出OCR结果
22

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

56
## 功能
67

@@ -15,7 +16,7 @@
1516

1617
## 使用方式
1718
### 输出及click动作(暂时只写了click动作,其他动作暂未写)。
18-
"""
19+
```
1920
"接受进入的副本名称": {
2021
"recognition": "OCR",
2122
"expected": [
@@ -48,9 +49,10 @@
4849
action_key: 动作名称,用于判断动作类型,如Click、Move等
4950
recognition_name: task任务名称,用于指定识别任务名称,返回该节点的结果。
5051
return_text: 输出的描述,用于指定返回的描述
51-
click_target: 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。
52+
click_target: 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。
53+
54+
```
5255

53-
"""
5456
### 只输出,无动作
5557
```
5658
"活动-三界奇缘-正确率": {
@@ -83,7 +85,8 @@
8385

8486
## 注意事项
8587

86-
- 注意的值"custom_action_param"
88+
- 注意"custom_action_param"参数
8789

8890

89-
feat(customs): 新增在UI日志界面上显示OCR结果。
91+
feat(customs): 新增在UI日志界面上显示OCR结果。
92+
perf(customs):优化readme及任务说明。

Storage/customs/gitlihang/output-ocr-result-log/action/returnOCR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class ReturnOCR(CustomAction):
1313
"action_key": "Click",
1414
"recognition_name": "识别输出测试",
1515
"return_text": "输出的描述"
16-
"click_target": [] # 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用
16+
"click_target": [] # 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用
1717
}
1818
action_key: 动作名称,用于判断动作类型,如Click、Move等
1919
recognition_name: task任务名称,用于指定识别任务名称,返回该节点的结果。
2020
return_text: 输出的描述,用于指定返回的描述
21-
click_target: 点击坐标,格式为[x1, y1, x2, y2],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。
21+
click_target: 点击坐标,格式为[x1, y1, w, h],仅在action_key为Click时使用。如果不提供click_target,则默认点击识别结果的中心位置。
2222
2323
"""
2424
def run(

Storage/customs/gitlihang/output-ocr-result-log/maahub_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"id": "gitlihang/output-ocr-result-log",
33
"title": "在UI日志界面上显示OCR结果",
4-
"description": "在UI界面上显示OCR识别结果,方便用户查看任务进度和结果。",
4+
"description": "在UI日志界面上显示重要节点OCR识别结果,方便用户查看任务进度和结果。",
55
"author": "gitlihang",
66
"source": "Maa_MHXY_MG",
77
"sourceGithub": "https://github.com/gitlihang/Maa_MHXY_MG",
88
"tags": ["ocr-result", "log", "ui"],
99
"createdAt": "2026-06-04",
1010
"updatedAt": "2026-06-04",
11-
"version": "1.0.0",
11+
"version": "1.0.1",
1212
"mfwVersion": "5.X",
1313
"entry": "main.py",
1414
"readme": "./README.md",

0 commit comments

Comments
 (0)