Search code examples
javaopencvsplitdetection

openCV in java - looking to use the split method.


I recently started to work on openCV using java and so far it looks great. I managed to detect faces and play with a threshold. So basically 101 stuff.

Now, I wish to take it one step further, I wish to identify the 'hands' or 'fingers' but for some reason, I noticed that the OpenCV does not contain all methods (functionality) that C++ has. (I may be wrong with this statement)

Given

OpenCV cv = new OpenCV(); 

I'm able to do this:

cv.absDiff();

BUT I'm unable to use other methods such as: split (which exits openCV documentation, http://opencv.willowgarage.com/documentation/cpp/operations_on_arrays.html#cv-split).

So my question is this: what am I missing here or is the OpenCV for java is limited? I haven't used C++ for many years (so I don't really remember the notation).

Thanks for any pointers :-)


Solution

  • OpenCv is not available in Java as mentioned here. you should use JavaCV instead. It contains all the methods in OpenCV.

    you can also check the second answer posted on this thread.