AI engineering glossary · Computer vision

What is contour detection?

Contour detection: Finding the outlines of shapes in an image, usually from a binary or edge image, and returning each outline as a list of boundary points. It is used to measure shapes, count objects and find document borders.

Level: intermediateTopic: Computer vision

Contour detection: an example

OpenCV's findContours can trace the four corners of a receipt photo so it can be straightened.

Related terms

More Computer vision terms

Where you learn it

Contour detection is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.