I have detected contour in my image. After detecting contour, I filtered contours based on area. Then I have drawn a bounding rectangle around license plate,around only one contour.
How to crop the remaining image and get only the region of rectangle drawn, that is, the I want to get only license plate around which I have drawn a rectangle. I dont have have coordinates of rectangle. I simply used Core.rectangle() function in opencv to draw a rectangle.
Can anyone help me with this. Please provide code in android + opencv using which i can ge desired results. I am also attaching an image.Here I have drawn rectangle using Core.rectangle(). I want to get the rectangle part and crop other part.