opencv_ffi library

Support for doing something awesome.

More dartdocs go here.

Classes

ArucoMarker
ArucoMarkers
Camera
Opens and accesses a camera attached to your device.
Mat
OpenCVBindings
Bindings for src/opencv_ffi.h.
OpenCVImage
A pointer to an image encoded by OpenCV.
VideoCapture

Extensions

ArucoMarkersUtils
Extension methods on a pointer to ArucoMarkers structs.
MatUtils
Extension methods on OpenCV Matrix objects.

Properties

arena Arena
An arena to allocate memory.
final
nativeLib OpenCVBindings
The C bindings generated by package:ffigen.
final

Functions

detectArucoMarkers(Pointer<Mat> image, {required int dictionary}) Pointer<ArucoMarkers>
Detects ArUco markers according to the given ArUco dictionary.
drawMarkers(Pointer<Mat> image, Pointer<ArucoMarkers> markers) → void
Draws rectangles around any identified markers in the image.
encodeJpg(Pointer<Mat> image, {int quality = 100}) OpenCVImage?
Encodes an OpenCV image as a JPG with the given quality (from 0-100).
freeMatrix(Pointer<Mat> pointer) → void
Frees memory associated with the given matrix and its underlying image.
getMatrix(int height, int width, Pointer<Uint8> bytes) Pointer<Mat>
Converts an image with the given width and height into an OpenCV matrix.

Exceptions / Errors

CameraReadException
An exception indicating the camera could not be read.
ImageEncodeException
An exception indicating that an image could not be encoded.
OpenCVException
An exception thrown by OpenCV.