-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add NCNN MicroPython C API Bindings #6247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The binary size change of libncnn.so (bytes)
|
- Add test suite with broad coverage of API functions - Fix memory management and parameter handling issues - Improve error and buffer handling - Enable NCNN_PIXEL_DRAWING feature by default
感谢你的工作,请将你在实现中的笔记和心得,遇到的困难和解决方法等,记录成文章,发表在discussion分区,这将作为知识总结 https://github.com/Tencent/ncnn/discussions Thank you for your work. Please record your notes and experience in the implementation, difficulties encountered and solutions, etc. into an article and publish it in the discussion section. This will serve as a knowledge summary. https://github.com/Tencent/ncnn/discussions |
- Reorganize source files into src/ and include/ directories - Update build configuration
5ae271f
to
cfc2316
Compare
This pull request adds MicroPython bindings for the NCNN C API, enabling developers to run NCNN neural network inference directly within MicroPython environments.
Changes:
Introduced a new micropython/c_api directory containing the binding source files.
Wrapped core NCNN functionalities (e.g., model loading, extractor creation) with MicroPython C extension functions.
Defined MicroPython objects and their methods to make the NCNN API easy to use like regular Python code.
Added instructions for compiling the bindings on supported platforms.
Added test example for NCNN API