Skip to content

Commit

Permalink
update for public
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Apr 25, 2024
1 parent a474b73 commit 5ebdfa4
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 55 deletions.
15 changes: 5 additions & 10 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MaixCDK

MaixCDK(Maix C/CPP Development Kit) 是集成了 AI + 机器视觉 + IOT 等实用功能的 C/C++ 开发套件,简单易用的封装,让你快速构建自己的视觉、人工智能、IOT、机器人、工业相机等项目。

也是 [MaixPy](https://github.com/sipeed/MaixPy) 的 C/C++ 版本。

## 特性

Expand All @@ -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) |

## 快速开始

Expand Down
44 changes: 44 additions & 0 deletions docs/config/config_zh.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
4 changes: 4 additions & 0 deletions docs/doc_zh/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"import": "config_zh",
"name": "MaixCDK 中文文档"
}
23 changes: 23 additions & 0 deletions docs/doc_zh/sidebar.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions docs/site_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
90 changes: 45 additions & 45 deletions platforms/maixcam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions tools/cmake/check_toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ebdfa4

Please sign in to comment.