v2.2.2
opencv_dart
OpenCV4 bindings for Flutter, using dart:ffi.
135Likes 12.4K30-day downloads140Pub points
AndroidiOSmacOSWindowsLinux
OpenCV bindings for Dart language and Flutter. Support Asynchronous Now!
English project snapshot. Visit GitHub for the latest content.
OpenCV Bindings for Dart Language. Support both asynchronous and synchronous!
| https://codecov.io/github/rainyl/opencv_dart/graph/badge.svg?token=2H0WWT39SN | Star on Github | License: Apache-2.0 |
| Native Assets Build | Discord Server |
| Package | Link | Description |
|---|---|---|
| https://img.shields.io/pub/v/dartcv4.svg?logo=dart&label=dartcv4 | dartcv4 | OpenCV bindings for Dart Language. |
| https://img.shields.io/pub/v/opencv_dart.svg?logo=dart&label=opencv_dart | 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 |
| https://raw.githubusercontent.com/rainyl/awesome-opencv_dart/main/examples/texture_renderer/texture_rgba_renderer.gif | videoio texture renderer |
| dnn_minist | DNN MNIST inference |
| stitching | stitching |
| stitching | camera |
| stitching | videoio |
| Platform | Supported | Tested | Platforms |
|---|---|---|---|
| Android | :white_check_mark: | :white_check_mark: | x86_64, arm64-v8a, armeabi-v7a |
| iOS | :white_check_mark: | :white_check_mark: | arm64, x64+arm64(Simulator) |
| Linux | :white_check_mark: | :white_check_mark: | x64, arm64 |
| Windows | :white_check_mark: | :white_check_mark: | x64, arm64 |
| macOS | :white_check_mark: | :white_check_mark: | x64, arm64 |
| module | Binding status | Test status | description |
|---|---|---|---|
| core | :white_check_mark: | :white_check_mark: | Core module |
| calib3d | :white_check_mark: | :white_check_mark: | Calib3D module |
| dnn | :white_check_mark: | :white_check_mark: | DNN module |
| features2d | :white_check_mark: | :white_check_mark: | Features2D module |
| gapi | :x: | :x: | GAPI module |
| highgui | :white_check_mark: | :white_check_mark: | HighGUI module |
| imgcodecs | :white_check_mark: | :white_check_mark: | ImageCodecs module |
| imgproc | :white_check_mark: | :white_check_mark: | ImageProc module |
| ml | :x: | :x: | ML module |
| objdetect | :white_check_mark: | :white_check_mark: | Object Detection module |
| photo | :white_check_mark: | :white_check_mark: | Photo module |
| stitching | :ballot_box_with_check: | :ballot_box_with_check: | Stitching module |
| svd | :white_check_mark: | :white_check_mark: | SVD module |
| video | :white_check_mark: | :white_check_mark: | Video module |
| videoio | :white_check_mark: | :white_check_mark: | VideoIO module |
| module | Binding status | Test status | description |
|---|---|---|---|
| aruco | :white_check_mark: | :white_check_mark: | ArUco module |
| img_hash | :white_check_mark: | :white_check_mark: | Image hashing module |
| cuda | :x: | :x: | |
| wechat_qrcode | :white_check_mark: | :white_check_mark: | |
| bgsegm | :x: | :x: | |
| superres | :x: | :x: | |
| xfeatures2d | :x: | :x: | |
| ximgproc | :white_check_mark: | :white_check_mark: | |
| xobjdetect | :white_check_mark: | :white_check_mark: | |
| xphoto | :x: | :x: | |
| quality | :white_check_mark: | :white_check_mark: |
cv.VideoCapture from file is not supported yetimport '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
native-assets branchgocv project: https://github.com/hybridgroup/gocv License: Apache-2.0Apache-2.0 License