This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
generated from Neutree/c_cpp_project_framework
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
OpenCV Usage | ||
===== | ||
|
||
This is an example of using OpenCV with libmaix. | ||
|
||
## Build | ||
|
||
See [README.md](../../README.md) for build instructions and compile `examples/hello-world` first. | ||
|
||
Then build this example: | ||
|
||
``` | ||
python project.py --toolchain /opt//opt/toolchain-sunxi-musl/toolchain/bin --toolchain-prefix arm-openwrt-linux-muslgnueabi- config | ||
python project.py build | ||
``` | ||
|
||
## imlib (OpenMV libs) | ||
|
||
If you want to use OpenMV's lib like `find_blobs`, you can refer to [this API list](https://github.com/sipeed/MaixPy3/blob/c6b5c419a9c547f1f42c686020eb0e4cdb3f93cf/ext_modules/_maix_image/py_maix_image.cpp#L105) to find what you want, then find the corresponded C function, e.g. `.def("binary", &maix_image::_binary,` point to [_binary](https://github.com/sipeed/MaixPy3/blob/c6b5c419a9c547f1f42c686020eb0e4cdb3f93cf/ext_modules/_maix_image/_maix_image.cpp#L926) function, then you use this `binary` method in your C code! | ||
|
||
|
||
|
||
|