Skip to content

Commit

Permalink
docs: 文档措辞整理
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Mar 10, 2025
1 parent a97569e commit f93ad60
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions docs/en_us/1.1-QuickStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ MaaFramework supports complete low-code programming through JSON (Pipeline JSON)
It is also possible to combine both approaches, using low-code as a form of "wrapper" for invocation.
Below are several common integration methods:

### Complete Dependence on JSON Low-Code Programming (Using MaaPiCli.exe)
### Pure Json low-code programming (with common UI)

This method is simple and quick, but not very flexible. It is recommended for beginners and those new to programming with MaaFramework.
We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7MW) and [project template](https://github.com/MaaXYZ/MaaPracticeBoilerplate) for this method. Here is an example:
We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7MW) and [boilerplate](https://github.com/MaaXYZ/MaaPracticeBoilerplate) for this method. Here is an example:

```jsonc
// JSON does not support comments; this is pseudo-code for reference only and cannot be executed directly
Expand All @@ -32,10 +32,10 @@ We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7M

### Use JSON Low-Code Programming with Custom Logic for Complex Tasks

**💡MaaFW 4.x version highlights**
**💡 MaaFW v4.x version highlights**

Use the universal GUI or CLI to run MaaFW and register custom tasks in the child process (AgentServer).
This method can be seamlessly switched from 1. Here is an example:
Based on the above pure Json low-code programming, register your custom task in the child process (AgentServer).
This method can be seamlessly switched from pure Json low-code and is also applicable to [⭐ boilerplate](https://github.com/MaaXYZ/MaaPracticeBoilerplate). The following is an example:

```jsonc
{
Expand Down Expand Up @@ -94,6 +94,8 @@ For details, please refer to [this commit](https://github.com/MaaXYZ/MaaPractice

You can use low-code as a "wrapper" for invocation or register custom callbacks.

This method is not applicable to the boilerplate. You need to prepare resource files yourself.

```python
# This is pseudo code, for reference only, and cannot be run directly
# "Recognize and click the start button", "Recognize and click the confirmation icon" and so on are all logic in Json
Expand All @@ -115,7 +117,7 @@ def main():

## Prepare resource files

*⭐If you use the project template, just modify it directly in [folder](https://github.com/MaaXYZ/MaaPracticeBoilerplate/tree/main/assets/resource).*
*⭐If you use the boilerplate, just modify it directly in [folder](https://github.com/MaaXYZ/MaaPracticeBoilerplate/tree/main/assets/resource).*

You need to prepare some resource files with the typical file structure as follows:

Expand Down Expand Up @@ -155,17 +157,15 @@ Tools:

The files in `my_resource/image` are primarily used for template matching images, feature detection images, and other images required by the pipeline. They are read based on the `template` and other fields specified in the pipeline.

Please note that the images used need to be cropped from the lossless original image and scaled to 720p. If you use an Android emulator, please use the screenshot function that comes with the emulator! (You cannot directly take screenshots of the emulator window)

**UNLESS YOU EXACTLY KNOW HOW MAAFRAMEWORK PROCESSES, DO USE THE CROPPING TOOLS BELOW TO OBTAIN IMAGES.**
Please note that the images used need to be cropped from the lossless original image and scaled to 720p. **UNLESS YOU EXACTLY KNOW HOW MAAFRAMEWORK PROCESSES, DO USE THE CROPPING TOOLS BELOW TO OBTAIN IMAGES.**

- [Image Cropping and ROI Extraction Tool](https://github.com/MaaXYZ/MaaFramework/tree/main/tools/ImageCropper)
- [VSCode Extension](https://marketplace.visualstudio.com/items?itemName=nekosu.maa-support)
- [MFA Tools](https://github.com/SweetSmellFox/MFATools)

### Text Recognition Model Files

*⭐If you use the project template, just follow its documentation and run `configure.py` to automatically deploy the model file.*
*⭐If you use the boilerplate, just follow its documentation and run `configure.py` to automatically deploy the model file.*

The files in `my_resource/model/ocr` are ONNX models obtained from [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR) after conversion.

Expand All @@ -189,11 +189,11 @@ If needed, you can also fine-tune the official pre-trained models of PaddleOCR y

## Run

You can integrate MaaFramework using Generic CLI (MaaPiCli), third-party Generic GUI (MFAWPF, etc) or by writing integration code yourself.
You can using Generic UI (MaaPiCli, MFA, MFW, etc) or by writing integration code yourself.

### Using MaaPiCli

*⭐If you use the project template, follow its documentation directly and run `install.py` to automatically package the relevant files.*
*⭐If you use the boilerplate, follow its documentation directly and run `install.py` to automatically package the relevant files.*

Use MaaPiCli in the `bin` folder of the Release package, and write `interface.json` and place it in the same directory to use it.

Expand Down
2 changes: 1 addition & 1 deletion docs/en_us/1.2-ExplanationOfTerms.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

- **Agent**

The highlight of MaaFW 4.x is that it can separate the MaaFW body and `CustomRecognition` / `CustomAction` into two independent processes.
💡 MaaFW v4.x version highlights, that it can separate the MaaFW body and `CustomRecognition` / `CustomAction` into two independent processes.
For example, the body runs in a common GUI written in C#, and at the same time runs your own Custom logic in Python code, breaking the language barrier.

## General terms
Expand Down
18 changes: 9 additions & 9 deletions docs/zh_cn/1.1-快速开始.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MaaFramework 支持完全通过 Json 低代码编程(Pipeline Json),同时
亦可将两者结合,将低代码作为一种 “封装” 进行调用。
下面介绍几种常用的集成方式:

### 完全依赖 Json 低代码编程(使用 MaaPiCli.exe
### Json 低代码编程(使用通用 UI

简单快捷,但不够灵活,推荐 MaaFramework 初学者及编程小白使用。
我们为此方式提供了 [🎞️视频教程](https://www.bilibili.com/video/BV1yr421E7MW)[⭐项目模板](https://github.com/MaaXYZ/MaaPracticeBoilerplate)。以下是一个例子:
Expand All @@ -32,10 +32,10 @@ MaaFramework 支持完全通过 Json 低代码编程(Pipeline Json),同时

### 使用 Json 低代码编程,但对复杂任务使用自定义逻辑

**💡 MaaFW 4.x 版本亮点功能**
**💡 MaaFW v4.x 版本亮点功能**

使用通用 GUI 或 CLI 运行 MaaFW 本体,同时在子进程(AgentServer)中注册自定义任务。
该方法可从 1 中无缝切换,以下是一个例子:
在上述纯 Json 低代码编程的基础上,在子进程(AgentServer)中注册自定义任务。
该方法可从纯 Json 低代码上无缝切换,并同样适用[⭐项目模板](https://github.com/MaaXYZ/MaaPracticeBoilerplate),以下是一个例子:

```jsonc
{
Expand Down Expand Up @@ -92,7 +92,9 @@ class MyAction(CustomAction):

### 自行编写代码

可以将低代码作为一种“封装”进行调用,亦可注册自定义回调使用
可以将低代码作为一种“封装”进行调用,亦可注册自定义回调使用。

该方式不适用项目模板,需要您自行准备资源文件~

```python
# 此处为伪代码,仅供参考思路,无法直接运行
Expand Down Expand Up @@ -155,9 +157,7 @@ my_resource

`my_resource/image` 中的文件,主要为 pipeline 所用到的模板匹配图片、特征检测图片等,会按照 pipeline 中设定的 `template` 等字段读取对应的文件。

所使用的图片需要是无损原图缩放到 720p 后的裁剪。若使用安卓模拟器,请使用模拟器自带的截图功能!(不可以直接对模拟器窗口进行截图)

**除非你完全清楚 MaaFramework 在做什么,否则请使用下面的截图工具来获取图片。**
所使用的图片需要是无损原图缩放到 720p 后的裁剪。**除非你完全清楚 MaaFramework 在做什么,否则请使用下面的截图工具来获取图片。**

- [VSCode 插件](https://marketplace.visualstudio.com/items?itemName=nekosu.maa-support)
- [MFA 小工具](https://github.com/SweetSmellFox/MFATools)
Expand Down Expand Up @@ -189,7 +189,7 @@ my_resource

## 运行

使用 通用 CLI(MaaPiCli)、第三方通用 GUI(例如 MFAWPF 等)或者 自行编写集成代码
使用 通用 UI(如 MaaPiCli, MFA, MFW 等)或者 自行编写集成代码

### 使用 MaaPiCli

Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/1.2-术语解释.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

- **Agent** | **执行代理**

MaaFW 4.x 版本亮点功能可将 MaaFW 本体与 `CustomRecognition` / `CustomAction` 分离至独立的两个进程中。
💡 MaaFW v4.x 版本亮点功能可将 MaaFW 本体与 `CustomRecognition` / `CustomAction` 分离至独立的两个进程中。
例如本体运行在 C# 编写的通用 GUI 中,同时在 Python 代码中运行编写自己的 Custom 逻辑,打破语言壁垒。

## 通用术语
Expand Down

0 comments on commit f93ad60

Please sign in to comment.