flutter_opencv icon indicating copy to clipboard operation
flutter_opencv copied to clipboard

Why not use dart:ffi?

Open MohiuddinM opened this issue 5 years ago • 1 comments

The android and ios versions are just wrappers over opencv c++ library. Won't it be beneficial if you can use dart:ffi to create bindings directly to c++. That way you won't have to deal with writing platform specific codes, and at the same time make your library work with not just android and ios, but also on desktop platforms.

MohiuddinM avatar Jun 13 '20 15:06 MohiuddinM

I agree, this is a good alternative. I used this technique in my project: https://github.com/flutter-clutter/flutter-simple-edge-detection - however, it's only about edge detection. So if you want to implement the whole bindings using dart:ffi, feel free to have a look into my code and copy off the relevant parts @AdityaMulgundkar

flutter-clutter avatar Sep 18 '20 11:09 flutter-clutter