DEV Community

Alkeshm29
Alkeshm29

Posted on

4

How to identify required part of a image, crop and save as new file

Top comments (1)

Collapse
 
alkeshm29 profile image
Alkeshm29

I have tried this, firstly convert the image to binary using threshold. Then i searched for contours using cv2.findContours and after finding them i sorted the contours and drew the biggest

after some research i found a way to cut the contour and save it to a new image.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →