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

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.

Contents