Week 12 • Thursday

Block 117: Contours & Object Detection

Find and draw contours for shape analysis.

Concepts

Code Examples

See exercise below.

Exercise

Find all contours in a binary image. Draw the 3 largest ones. Draw bounding boxes around all detected contours with area > 500.

Homework

What preprocessing steps (threshold, blur, morph) give the best contour detection results? Experiment.