Using the skills of this chapter, segment and identify all of the objects in the provided reference file. Assign each detected object a unique color and fill its area on a black background. Additionally, for each color ID, print out the following properties—area, perimeter length, object center, and curvature.
- [Instructor] Let's close out Chapter Three…by putting our skills to the test.…Specifically, let's take this fuzzy image…and segment out the objects and then redraw…them onto a new image with unique colors.…The specific goals are to only draw large objects…which have an area of larger than 1,000 square pixels.…Additionally, each object needs to have its own color.…To get started, there's an initial file…you can open under Chapter Three, Module 10.…In this file, we've already loaded in our fuzzy.png image…in full color and we're showing it using imshow.…
The rest is up to you to segment it how you please…and then redisplay the objects according to the challenge.…This exercise will take around five to 10 minutes.…When ready, you can move on to the next video…to see one solution to this problem.…
Author
Released
9/22/2017- Installing and configuring OpenCV
- Data types and structures
- Image types
- Manipulating pixels
- Scaling and rotating images
- Using video inputs
- Creating custom interfaces
- Thresholding
- Object detection
- Face and feature detection
- Template matching
Skill Level Intermediate
Duration
Views
Related Courses
-
Python: Programming Efficiently
with Michele Vallisneri2h 15m Intermediate -
Code Clinic: Python
with Barron Stone2h 23m Intermediate -
NumPy Data Science Essential Training
with Charles Kelly3h 54m Intermediate
-
Introduction
-
Welcome56s
-
-
1. Install and Configure OpenCV
-
Install on Mac OS X5m 24s
-
Install on Windows 74m 16s
-
Test the install1m 51s
-
2. Basic Image Operations
-
Data types and structures7m 36s
-
Blur, dilation, and erosion5m 50s
-
Scale and rotate images5m 14s
-
Use video inputs4m 33s
-
Create custom interfaces4m 28s
-
3. Object Detection
-
Simple thresholding6m 15s
-
Adaptive thresholding4m 38s
-
Skin detection6m 8s
-
Introduction to contours1m 38s
-
Contour object detection4m 19s
-
Canny edge detection4m 8s
-
Object detection overview1m 59s
-
4. Face and Feature Detection
-
Haar cascading1m 43s
-
Face detection5m 7s
-
Solution: Eye detection5m 26s
-
Conclusion
-
Additional techniques3m 35s
-
Next steps1m 5s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Challenge: Assign object ID and attributes