opencv_ffi 1.0.2 opencv_ffi: ^1.0.2 copied to clipboard
An FFI implementation of the C++ OpenCV library in Dart, with video I/O, image encodings and processing, and some GUI elements.
import "dart:io";
import "package:opencv_ffi/opencv_ffi.dart";
void main() async {
final camera =
Platform.isWindows ? Camera.fromIndex(0) : Camera.fromName("/dev/video0");
try {
while (true) {
camera.showFrame();
}
} finally {
camera.dispose();
}
}