Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rainyl/opencv_dart

Repository files navigation

opencv_dart

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!

Demos

Screenshot Link
example example
videoio texture renderer
dnn_minist DNN MNIST inference
stitching stitching
stitching camera
stitching videoio

Supported Platforms

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

Status

Core Modules

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

Contrib Modules

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: cv.VideoCapture from file is not supported yet (削除ここまで) supported now.

Usage

Pure Dart

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);
}

Flutter

see awesome-opencv_dart and share yours

TODO

  • (削除) compile libs for android, linux (削除ここまで)
  • (削除) support for iOS, macOS (削除ここまで)
  • (削除) add more examples (削除ここまで)
  • documentation
  • (削除) modify C wrapper to catch exceptions (削除ここまで)
  • Native Assets, see native-assets branch
  • async
  • more/full test coverage
  • (削除) directly include opencv source code, refactor cmakelists.txt (削除ここまで)

Contributors

Acknowledgement

Star History

Star History Chart

License

Apache-2.0 License

About

OpenCV bindings for Dart language and Flutter. Support Asynchronous Now!

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /