drydart / flutter_opencv

OpenCV bindings plugin for Flutter apps [work in progress]
https://pub.dev/packages/flutter_opencv
The Unlicense
80 stars 14 forks source link

Need short information how to add custom functions #4

Open spidgorny opened 5 years ago

spidgorny commented 5 years ago

I understand that there are too many OpenCV functions to implement them by one person. Let's do it together. Could you please explain how to add a new OpenCV function to the plugin?

Is this enough to add another

case "getVersionString":
        result.success(org.opencv.core.Core.getVersionString());
        break;

and implement the corresponding Flutter code like this?

Future<String> get versionString async {
  return await _channel.invokeMethod('getVersionString') as String;
}

Anything else? How do we actually load the image and pass the data in parameters so that OpenCV can understand it?

I hope everybody will be able to implement the functions they need and submit PR for you to review and merge.

I'm particularly interested in

markfili commented 4 years ago

@spidgorny Was anything done with the above mentioned suggestion? I'm also interested in everything mentioned

markfili commented 4 years ago

although I respect every effort to help the community by publishing libraries like this, I would like to suggest that we focus our efforts on another, more elaborate attempt to expose OpenCV APIs to Flutter: https://github.com/AdityaMulgundkar/flutter_opencv. No hard feelings