react-native-opencv3
react-native-opencv3 copied to clipboard
add new methods
how can i add a new method? Like findContours and drawContours.
Hi @devops35 sorry it took me a while to get back to you on this. I made you a contributor on react-native-opencv3 and react-native-opencv3-tests. Basically you want to add any kind of additional objects that do not currently exist that are passed into the parameters look at the Mat type and other basic types to see how to do that. Only if the type is not already supported. And then on Android the method as long as it exists in Imgproc or Core should automatically be invoked through reflection. On iOS you will have to add the method(s) to OpencvFuncs.mm to the end of the function lists you will also have to add the parameters for the function to the types static array and a case identifier to the fns static array. Then in the monolithic switch statement add the invocation at the end of the switch statement.
Once you have added any functions let me know and I will push out another release 1.0.9 Hope that helps sorry for taking so long to respond, Adam
Hi, I would like to implement the findContours and drawContours. going over the openCV documentations there is a need for: OutputArrayOfArrays type
Going over the react-native-opencv3 library in xcode I can found just this type
type {MAT, DOUBLE, FLOAT, INT, BOOLEAN, STR, SCALAR, POINT, SIZE, RECT}
Is there an OutputArrayOfArrays in the library, and how can I use it? Or can I add an OutputArrayOfArrays type(vector<vector<Point counters;)?
Thanks for providing this great library
@mh9898 Where you able to add those methods?