diff --git a/README_ZH.md b/README_ZH.md index 86815f1e..d7272741 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -6,6 +6,7 @@ MaixCDK MaixCDK(Maix C/CPP Development Kit) 是集成了 AI + 机器视觉 + IOT 等实用功能的 C/C++ 开发套件,简单易用的封装,让你快速构建自己的视觉、人工智能、IOT、机器人、工业相机等项目。 +也是 [MaixPy](https://github.com/sipeed/MaixPy) 的 C/C++ 版本。 ## 特性 @@ -20,22 +21,16 @@ MaixCDK(Maix C/CPP Development Kit) 是集成了 AI + 机器视觉 + IOT 等实 * 有对应的 Python 版本(MaixPy),API 自动同步更新。 * 完整生态, MaixCDK + MaixPy + MaixVision(代码编写,实时图像查看等) + MaixHub(应用商店,分享交流等) +更多介绍可以看 [MaixPy](https://github.com/sipeed/MaixPy) 介绍和文档 + ## 支持的设备 | 设备名 | 支持状态 | | ----- | ------- | -| Linux | 完全支持 | -| Sipeed MaixCam | 完全支持 | - - -## 常用功能和算法 +| Linux | 部分支持 | +| [Sipeed MaixCAM](https://wiki.sipeed.com/maixcam) | 完全支持 | -|分类| 功能名 | 简介 | API | 示例 | -| -- | ----- | ------- | ------- | ------- | -| AI 视觉 | YOLOv2 目标检测 | YOLOv2 目标检测 | [yolo2](./docs/app_doc/yolov2.md) | [yolo2](./projects/yolov2) | -| | YOLOv5 目标检测 | YOLOv5 目标检测 | [yolo5](./docs/app_doc/yolov5.md) | [yolo5](./projects/yolov5) | -| 经典视觉算法 | 找色块 | 找色块 | [find_blob](./docs/app_doc/find_blob.md) | [find_blob](./projects/find_blob) | ## 快速开始 diff --git a/docs/config/config_zh.json b/docs/config/config_zh.json new file mode 100644 index 00000000..cb928336 --- /dev/null +++ b/docs/config/config_zh.json @@ -0,0 +1,44 @@ +{ + "locale": "zh", + "navbar": { + "title": "MaixCDK", + "logo": { + "alt": "MaixCDK logo", + "url": "" + }, + "home_url": "/", + "items": [ + { + "url": "/doc/", + "label": "Doc", + "position": "left" + }, + { + "url": "/api/", + "label": "API", + "position": "left" + } + ] + }, + "footer":{ + "top":[ + { + "label": "", + "items": [ + { + "label": "", + "url": "#", + "target": "_blank" + } + ] + } + ], + "bottom": [ + { + "label": "Generated by teedoc", + "url": "https://github.com/teedoc/teedoc", + "target": "_blank" + } + ] + } +} \ No newline at end of file diff --git a/docs/doc_zh/config.json b/docs/doc_zh/config.json new file mode 100644 index 00000000..f6dbd997 --- /dev/null +++ b/docs/doc_zh/config.json @@ -0,0 +1,4 @@ +{ + "import": "config_zh", + "name": "MaixCDK 中文文档" +} diff --git a/docs/doc_zh/sidebar.yaml b/docs/doc_zh/sidebar.yaml new file mode 100644 index 00000000..4d30aaea --- /dev/null +++ b/docs/doc_zh/sidebar.yaml @@ -0,0 +1,23 @@ +items: + - label: Brief + file: README.md + - label: Quick start + file: dev/quick_start.md + - label: Dev Convention + file: convention/README.md + items: + - label: APP dev + file: convention/app.md + - label: I18N(translate) + file: convention/i18n.md + - label: Communicate protocol + file: convention/protocol.md + - label: NN AI model + file: convention/nn.md + - label: FAQ + file: faq.md + - label: Applications + collapsed: false + items: + - label: YOLOv2 + file: application/ai/yolov2.md diff --git a/docs/site_config.json b/docs/site_config.json index bc685e07..a2f27a46 100644 --- a/docs/site_config.json +++ b/docs/site_config.json @@ -21,6 +21,24 @@ "python": "python3", "pip": "pip3" }, + "translate": { + "docs": { + "/doc/": [ + { + "url": "/doc/zh/", + "src": "doc_zh" + } + ] + }, + "pages": { + "/": [ + { + "url": "/zh/", + "src": "pages/index_zh" + } + ] + } + }, "plugins": { "teedoc-plugin-markdown-parser":{ "from": "pypi", diff --git a/platforms/maixcam.yaml b/platforms/maixcam.yaml index 498375c6..8c6e4d71 100644 --- a/platforms/maixcam.yaml +++ b/platforms/maixcam.yaml @@ -14,51 +14,51 @@ toolchain: c_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d cxx_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d - - name: GLIBC toolchain optimize by t-head - id: glibc_t-head - url: https://sophon-file.sophon.cn/sophon-prod-s3/drive/23/03/07/16/host-tools.tar.gz - urls: - sites: - - https://github.com/sophgo/cvi_mmf_sdk - sha256sum: ff9a58e8e192b20ea42e1d729c42d2219523209706cb3f0cf134582f6c70f805 - filename: host-tools.tar.gz - path: toolchains/maixcam - bin_path: toolchains/maixcam/host-tools/gcc/riscv64-linux-x86_64/bin - prefix: riscv64-unknown-linux-gnu- - c_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d - cxx_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d + # - name: GLIBC toolchain optimize by t-head + # id: glibc_t-head + # url: https://sophon-file.sophon.cn/sophon-prod-s3/drive/23/03/07/16/host-tools.tar.gz + # urls: + # sites: + # - https://github.com/sophgo/cvi_mmf_sdk + # sha256sum: ff9a58e8e192b20ea42e1d729c42d2219523209706cb3f0cf134582f6c70f805 + # filename: host-tools.tar.gz + # path: toolchains/maixcam + # bin_path: toolchains/maixcam/host-tools/gcc/riscv64-linux-x86_64/bin + # prefix: riscv64-unknown-linux-gnu- + # c_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d + # cxx_flags: -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d - - name: GLIBC toolchain mainline, install by `apt install g++-riscv64-linux-gnu` - id: mainline_system - url: - urls: - sites: - sha256sum: - filename: - path: - bin_path: /usr/bin - prefix: riscv64-linux-gnu- + # - name: GLIBC toolchain mainline, install by `apt install g++-riscv64-linux-gnu` + # id: mainline_system + # url: + # urls: + # sites: + # sha256sum: + # filename: + # path: + # bin_path: /usr/bin + # prefix: riscv64-linux-gnu- - - name: GLIBC toolchain mainline, install from https://github.com/riscv-collab/riscv-gnu-toolchain - id: mainline - url: - urls: - sites: - sha256sum: - filename: - path: - bin_path: /opt/riscv/bin/ - prefix: riscv64-unknown-linux-gnu- + # - name: GLIBC toolchain mainline, install from https://github.com/riscv-collab/riscv-gnu-toolchain + # id: mainline + # url: + # urls: + # sites: + # sha256sum: + # filename: + # path: + # bin_path: /opt/riscv/bin/ + # prefix: riscv64-unknown-linux-gnu- - - name: GLIBC toolchain mainline2 - id: mainline2 - url: - urls: - sites: - sha256sum: - filename: - path: - bin_path: /home/neucrack/soft/toolchains/toolchain-HOST-x86_64-linux-gnu-riscv64-licheervnano-linux-gnu/bin - prefix: riscv64-licheervnano-linux-gnu- - c_flags: -march=rv64gcv_zfh - cxx_flags: -march=rv64gcv_zfh + # - name: GLIBC toolchain mainline2 + # id: mainline2 + # url: + # urls: + # sites: + # sha256sum: + # filename: + # path: + # bin_path: /home/neucrack/soft/toolchains/toolchain-HOST-x86_64-linux-gnu-riscv64-licheervnano-linux-gnu/bin + # prefix: riscv64-licheervnano-linux-gnu- + # c_flags: -march=rv64gcv_zfh + # cxx_flags: -march=rv64gcv_zfh diff --git a/tools/cmake/check_toolchain.py b/tools/cmake/check_toolchain.py index 0f7b35c9..21c26a98 100644 --- a/tools/cmake/check_toolchain.py +++ b/tools/cmake/check_toolchain.py @@ -20,6 +20,8 @@ def check_toolchain_info(info, board_name): def select_multi_toolchain(board_name, toolchain_info, select_id): if type(toolchain_info) is not list: return toolchain_info + if len(toolchain_info) == 1: + return toolchain_info[0] for info in toolchain_info: if not "id" in info: print("Error: id not found in toolchain info of board %s.yaml" % board_name)