👏👋This is a lite library with pure C++ for AI model inference, aiming to deploy on mobile devices easily. This can be built to be migrated into Unity and used by C#.🎉🎉
Strongly depending on module: onnxruntime.
Click to Check Demo
- 2D detection Model
- RTMDet-series
- YOLO-series
- Face Landmark Model
- Face Detector
- Face Landmarker
- Human Segmentation Model
- Selfie (Close to camera)
- Human Pose Model
- RTMPOSE
Linux | Android (exclude x86) | MacOS | IOS | Windows | WebAssembly | |
---|---|---|---|---|---|---|
CPU | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
GPU | - | - | ✅(CoreML) | ✅(CoreML) | - | - |
XNNPACK | ✅ | ✅ | - | - | ✅ | - |
NNAPI | - | ✅ | - | - | - | - |
Linux | Android | MacOS | IOS | Windows | |
---|---|---|---|---|---|
Non-maximum Suppression | ✅ | ✅ | ✅ | ✅ | ✅ |
Face-Geometry | ✅ | ✅ | ✅ | ✅ | ✅ |
Linux | Android | MacOS | IOS | Windows | WebAssembly | |
---|---|---|---|---|---|---|
OpenCV - Mobile | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
ONNXRuntime | ✅ | ✅ excluding x86 | ✅ | ✅ | ✅ | ✅ |
nlohmann json (header only) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Eigen (header only) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
OpenMP | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Linux Host:
./build_linux.sh install
# python3 build.py --android --linux
MACOS Host:
./build_osx.sh
./build_ios.sh
# python3 build.py --macos --ios (--noinstall)
Windows Host (with vs2022):
# python3 build.py --windows (--noinstall)
Refer to Notion for detail documentation
Refer to docs