Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Crop image, after border detection

Hello!! I'm coding in Java. I'm manipulating an image and the result till now is this:

image description

As you can see, I found a region surrounded by the white line using Imgproc.drawContours().

Now I want to be able to crop the image taking only the internal area of the shape, discarding the rest.

Ho can I solve the problem?