0

I am new to OpenCV. I am converting C++ code into Java code. By referencing this link.

While doing this I came across this line:

findContours(connected, contours, hierarchy, CV_RETR_CCOMP,
             CV_CHAIN_APPROX_SIMPLE, Point(0, 0));

CV_RETR_CCOMP and CV_CHAIN_APPROX_SIMPLE not found in Java OpenCV 3.2.0.

Any reference link or any tutorial regarding this would be great help.

Community
  • 1
  • 1

1 Answers1

0

Here is the code:

 Imgproc.findContours([here you put your input image/live], contours, hierarchy , Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);

If it didn't work for you, you can ask and I'll try to help.

aSharon
  • 1
  • 1