OpenCV Bindings for Dart Language. Support both asynchronous and synchronous!
| Star on Github | License: Apache-2.0 | |
| Native Assets Build | Discord Server |
| Package | Link | Description |
|---|---|---|
| dartcv4 | OpenCV bindings for Dart Language. | |
| opencv_dart | OpenCV for Flutter, from 2.x , it is a wrapper of dartcv4 to keep compatibility. |
Note
WIP, APIs may change in the future, contributions are welcome!
| Screenshot | Link |
|---|---|
| example | example |
| videoio texture renderer | |
| dnn_minist | DNN MNIST inference |
| stitching | stitching |
| stitching | camera |
| stitching | videoio |
| Platform | Supported | Tested | Platforms |
|---|---|---|---|
| Android | ✅ | ✅ | x86_64, arm64-v8a, armeabi-v7a |
| iOS | ✅ | ✅ | arm64, x64+arm64(Simulator) |
| Linux | ✅ | ✅ | x64, arm64 |
| Windows | ✅ | ✅ | x64, arm64 |
| macOS | ✅ | ✅ | x64, arm64 |
| module | Binding status | Test status | description |
|---|---|---|---|
| core | ✅ | ✅ | Core module |
| calib3d | ✅ | ✅ | Calib3D module |
| dnn | ✅ | ✅ | DNN module |
| features2d | ✅ | ✅ | Features2D module |
| gapi | ❌ | ❌ | GAPI module |
| highgui | ✅ | ✅ | HighGUI module |
| imgcodecs | ✅ | ✅ | ImageCodecs module |
| imgproc | ✅ | ✅ | ImageProc module |
| ml | ❌ | ❌ | ML module |
| objdetect | ✅ | ✅ | Object Detection module |
| photo | ✅ | ✅ | Photo module |
| stitching | ☑️ | ☑️ | Stitching module |
| svd | ✅ | ✅ | SVD module |
| video | ✅ | ✅ | Video module |
| videoio | ✅ | ✅ | VideoIO module |
| module | Binding status | Test status | description |
|---|---|---|---|
| aruco | ✅ | ✅ | ArUco module |
| img_hash | ✅ | ✅ | Image hashing module |
| cuda | ❌ | ❌ | |
| wechat_qrcode | ✅ | ✅ | |
| bgsegm | ❌ | ❌ | |
| superres | ❌ | ❌ | |
| xfeatures2d | ❌ | ❌ | |
| ximgproc | ✅ | ✅ | |
| xobjdetect | ✅ | ✅ | |
| xphoto | ❌ | ❌ | |
| quality | ✅ | ✅ |
- ❌ : not finished
- ☑️ : partially supported
- ✅ : finished
- modules not in the above table are not considered, contributions are welcome
(削除) videoio:supported now.cv.VideoCapturefrom file is not supported yet (削除ここまで)
import 'package:dartcv4/dartcv.dart' as cv; void main() { final img = cv.imread("test/images/lenna.png", flags: cv.IMREAD_COLOR); final gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY); print("${img.rows}, ${img.cols}"); cv.imwrite("test_cvtcolor.png", gray); }
see awesome-opencv_dart and share yours
-
(削除) compile libs for android, linux (削除ここまで) -
(削除) support for iOS, macOS (削除ここまで) -
(削除) add more examples (削除ここまで) - documentation
-
(削除) modify C wrapper to catch exceptions (削除ここまで) - Native Assets, see
native-assetsbranch - async
- more/full test coverage
-
(削除) directly include opencv source code, refactor cmakelists.txt (削除ここまで)
gocvproject: https://github.com/hybridgroup/gocv License: Apache-2.0
Apache-2.0 License