In this video, Patrick introduces the concept of contours. A single contour can be thought of as a point-to-point path that forms a closed, nonintersecting border around a single object. The OpenCV contours algorithm will generate a list of individual contours for all non-touching objects in an image.
- [Instructor] Once you have segmented out…the key areas of an image,…the next step is typically…to identify the individual objects.…But how can we do that?…One powerful way…is to use OpenCV's implementation of contours.…The goal of contours is to take a binary image…and create a tightly fitting closed perimeter…around all individual objects in the scene.…Each perimeter is called a contour.…From a mathematical point of view,…it is called an iterative energy reduction algorithm.…But conceptually,…we can think of it as an elastic film…that starts on the edges of an image…and squeezes in around all the objects and shapes.…
It creates the boundary around all these objects.…One thing to be aware of…is the idea of neighborhoods and connectedness.…Contours will consider any pixel value above zero…as part of the foreground,…and any other pixels touching or connected to this pixel…will be made to be part of the same object.…As the algorithm runs,…it tries to reduce the energy or the bounding box…around all these objects…until it comes to a converged result.…
AuthorPatrick W. Crawford
- Installing and configuring OpenCV
- Data types and structures
- Image types
- Manipulating pixels
- Scaling and rotating images
- Using video inputs
- Creating custom interfaces
- Object detection
- Face and feature detection
- Template matching
Skill Level Intermediate
Python: Programming Efficientlywith Michele Vallisneri2h 15m Intermediate
NumPy Data Science Essential Trainingwith Charles Kelly3h 54m Intermediate
1. Install and Configure OpenCV
2. Basic Image Operations
3. Object Detection
4. Face and Feature Detection
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.