This is a Flutter plugin that bundles and wraps the OpenCV computer-vision library for Java.
- Clone or fork the project, flutter_opencv.
- Open flutter_opencv in Android studio and wait for complete loading, from here you will modify Dart code.
- From the Studio window click on file -> open -> select flutter_opencv/example/android folder and open it in a new window, from here you will modify Android code.
- Open a terminal and cd in the base flutter_opencv folder.
flutter clean
flutter packages pub run build_runner clean
flutter packages get
flutter packages pub run build_runner build --delete-conflicting-outputs
TODO
Android only, at present.
import 'package:flutter_opencv/opencv.dart' as cv;
Mat<T>
Mat1b
Mat1d
Mat1f
Mat1i
Point<T>
Point2d
Point3<T>
Point3d
Range
Rect<T>
Rect2d
Rect2i
Scalar
Size<T>
Size2d
buildInformation
versionString
C++ | Flutter |
---|---|
cv::Mat_<T> |
cv.Mat<T> |
cv::Mat1b |
cv.Mat1b |
cv::Mat1d |
cv.Mat1d |
cv::Mat1f |
cv.Mat1f |
cv::Mat1i |
cv.Mat1i |
cv::Point_<T> |
cv.Point<T> |
cv::Point2d |
cv.Point2d |
cv::Point3_<T> |
cv.Point3<T> |
cv::Point3d |
cv.Point3d |
cv::Range |
cv.Range |
cv::Rect_<T> |
cv.Rect<T> |
cv::Rect |
cv.Rect |
cv::Rect2d |
cv.Rect2d |
cv::Rect2i |
cv.Rect2i |
cv::Scalar |
cv.Scalar |
cv::Size_<T> |
cv.Size<T> |
cv::Size2d |
cv.Size2d |
cv::getBuildInformation |
cv.buildInformation |
cv::getVersionString |
cv.versionString |