How to use OpenCV in the Flutter SDK?

2019-04-24 01:15发布

问题:

I have been trying to find a Flutter OpenCV library. I'm looking to handle facial recognition through eye positioning. I need this to be for both android and iOS. I found one for C++ which I think Flutter compiles to as well as Swift/Objective C libraries. I am wondering which route would be the best to go or if there is a better option.

回答1:

Flutter is still beta and there is no OpenCV available for flutter unfortunately. But you can integrate the OpenCV native libs or sdk for both Android and IOS and invoke them through platform channels

Hope that helped!



回答2:

Flutter plugin package is avialable - https://pub.dartlang.org/packages/flutter_opencv

You can try this and it might be helpful.