flutter_opencv icon indicating copy to clipboard operation
flutter_opencv copied to clipboard

Need short information how to add custom functions

Open spidgorny opened this issue 6 years ago • 2 comments

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

spidgorny avatar Oct 24 '19 14:10 spidgorny

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

markfili avatar May 21 '20 13:05 markfili

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

markfili avatar May 22 '20 06:05 markfili