DEV Community

Divyanshu Shekhar
Divyanshu Shekhar

Posted on

Contours OpenCV Python

What are Contours?

Contours are continuous lines or curves that bound or cover the full boundary of an object in an image.

Contours are very important in:

  1. Object Detection
  2. Shape Detection ##Steps for Finding Contours in OpenCV Python 1.Read image in OpenCV using imread() function. 2.Convert the Colored image to Grayscale image. Find edges using Canny edge detection. Find Contours. Draw all Contours on the image.

Contours OpenCV Python Algorithm

Loading the image using imread() function and converting it to grayscale can be done by you. If you are facing difficulties in these steps must read basic opencv operations.

Learn all the things about Contours in OpenCV Python from the original post.

Top comments (0)