mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
docs.更新Linux编译教程
This commit is contained in:
@@ -10,15 +10,15 @@
|
||||
|
||||
### Opencv
|
||||
|
||||
- 请自行搜索教程安装,没什么特别的,作者当前成功验证过的版本为`4.5.3`版本,不需要`opencv_contrib`
|
||||
- 请注意,`3rdparty/include/opencv`中的头文件是`4.5.3`版本的,若是使用其他版本,请注意头文件冲突问题(直接删了`3rdparty/include/opencv`就好,用你自己的)
|
||||
请自行搜索教程安装,没什么特别的,作者当前成功验证过的版本为`4.5.3`版本,不需要`opencv_contrib`
|
||||
|
||||
### PaddleOCR
|
||||
|
||||
1. 使用我魔改了接口的版本:https://github.com/MistEO/PaddleOCR
|
||||
2. 参考 [这个教程](https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.3/deploy/cpp_infer#readme)
|
||||
3. PaddlePaddle 直接 [下载](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.0/guides/05_inference_deployment/inference/build_and_install_lib_cn.html) 即可
|
||||
4. 如果 cmake 找不到 opencv,可以尝试修改 CMakeLists.txt 里 49 行 Opencv 查找路径
|
||||
3. PaddlePaddle 直接 [下载](https://paddleinference.paddlepaddle.org.cn/master/user_guides/download_lib.html) 即可
|
||||
4. 若`cmake`找不到`Opencv`,可以尝试修改 [Opencv 的查找路径](https://github.com/MistEO/PaddleOCR/blob/release/2.3/deploy/cpp_infer/CMakeLists.txt#L49)
|
||||
5. 若您使用`MKL`版本,可修改 [MKL 宏定义](https://github.com/MistEO/PaddleOCR/blob/release/2.3/deploy/cpp_infer/include/ocr_defines.h#L9) 为`true`以提高性能
|
||||
|
||||
编译选项参考
|
||||
|
||||
@@ -38,12 +38,13 @@ make shared
|
||||
|
||||
使用我魔改了接口的版本:https://github.com/MistEO/penguin-stats-recognize-v3
|
||||
|
||||
## 部署
|
||||
## MeoAssistant
|
||||
|
||||
1. 直接拷贝上面编译的第三方库到`3rdparty/lib` or 手动修改`CMakeLists.txt`指定第三方库路径
|
||||
2. 安装`adb`,并修改`resource/config.json`中`Custom`.`adb`.`path`的值为`"adb"`
|
||||
3. 复制资源文件到`libMeoAssitant.so`同一目录下,具体可参考 [这个脚本](../../tools/update_resource.sh)
|
||||
4. 通过 [Python 接口](../Python/interface.py) 或 [C 接口](../../include/AsstCaller.h) 进行调用,需要自行编写少量的代码
|
||||
1. 直接拷贝上面编译的第三方库到`3rdparty/lib` 或者 手动修改`CMakeLists.txt`指定第三方库路径
|
||||
2. `3rdparty/include/opencv`中的头文件是`4.5.3`版本的,若是使用其他版本,请注意头文件冲突问题
|
||||
3. 安装`adb`,并修改`resource/config.json`中`Custom`.`adb`.`path`的值为`"adb"`
|
||||
4. 复制资源文件到`libMeoAssitant.so`同一目录下,具体可参考 [这个脚本](../../tools/update_resource.sh)
|
||||
5. 通过 [Python 接口](../Python/interface.py) 或 [C 接口](../../include/AsstCaller.h) 进行调用,需要自行编写少量的代码
|
||||
|
||||
## 集成文档
|
||||
|
||||
|
||||
Reference in New Issue
Block a user