From the course: OpenCV for Python Developers
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Challenge: Assign object ID and attributes
From the course: OpenCV for Python Developers
Challenge: Assign object ID and attributes
(upbeat music) - [Narrator] 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 squared 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 have 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 should take around five to 10 minutes. When ready, you can move on to the next video to see one solution to this problem.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Segmentation and binary images1m 38s
-
(Locked)
Simple thresholding6m 34s
-
(Locked)
Adaptive thresholding4m 38s
-
(Locked)
Skin detection6m 31s
-
(Locked)
Introduction to contours1m 38s
-
(Locked)
Contour object detection6m 56s
-
(Locked)
Area, perimeter, center, and curvature8m 19s
-
(Locked)
Canny edge detection8m 1s
-
(Locked)
Object detection overview1m 59s
-
(Locked)
Challenge: Assign object ID and attributes50s
-
(Locked)
Solution: Assign object ID and attributes10m 5s
-
-
-