Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not use dart:ffi? #6

Open
MohiuddinM opened this issue Jun 13, 2020 · 1 comment
Open

Why not use dart:ffi? #6

MohiuddinM opened this issue Jun 13, 2020 · 1 comment

Comments

@MohiuddinM
Copy link

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.

@flutter-clutter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants