rainyl / opencv_dart

OpenCV bindings for Dart language and Flutter.
https://pub.dev/packages/opencv_dart
Apache License 2.0
78 stars 10 forks source link

Web support #77

Open abdelaziz-mahdy opened 3 weeks ago

abdelaziz-mahdy commented 3 weeks ago

Do you think this package can run opencv web assembly? Or it will be alot of work?

rainyl commented 3 weeks ago

I haven't investigated but the most important problem is that web is not supported by dart::ffi and package:ffi, which is the basement of calling native codes. But I do think it's possible to call native libs via WASM, I used to search dart ffi for web or something else and found some developers were working on ffi for web , but it's immatrue and haven't update for a long time.

If you have any ideas, maybe we can try to work more on it.