Create a simple drawing application that allows you to paint circles onto a white canvas. It must also be able to switch colors with some kind of toggle.
(whoosh)…- [Instructor] As we complete Chapter 2,…let's do a challenge to look at the skills we have learned.…The goal is to create a simple drawing app.…This app must be able to paint multiple circles…onto a white canvas,…and it must be able to switch between two different colors.…Under Chapter 2, Module 10,…you'll find some initial code to look at.…Let's go through that briefly.…In this file,…you'll note there's a few things already added.…At the very top,…we have a global canvas already defined.…This is where you should draw all of your circles onto.…
Note that it's initialized to be 500 pixels by 500 pixels,…and each pixel is set to be 255,…meaning it will appear as a white image.…Next we have a click handler already defined,…noting that it has a few if statements…already set up relating to mouse events,…as well as it makes the canvas a global variable…inside this click statement.…Following this,…we have our window name…as well as the registration of the callback…for the click handler.…And then we have a forever while loop.…
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
NumPy Data Science Essential Trainingwith Charles Kelly3h 54m Intermediate
Python: Programming Efficientlywith Michele Vallisneri2h 15m 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.