Join Patrick W. Crawford for an in-depth discussion in this video Solution: Create a simple drawing app, part of OpenCV for Python Developers.
(ringing)…- [Instructor] Let's dive into how we can complete…this challenge for chapter two.…As a reminder, we are tasked to create a simple drawing app.…We must be able to paint circles onto a white canvas,…and we must be able to select between two different colors.…Given this, let's take a look at the code.…We start by opening the chapter two, module 10, Python file,…which has our starting point.…In here, we have first our global canvas defined…at the top, followed by the mouse click callback event,…followed by the named window for our canvas,…as well as the callback assignment,…and then we have our Forever loop,…which simply shows the canvas and then checks to see…if the Q key is ever pressed,…upon which it would break out at the program loop.…
Before we start writing any code,…let's think about how this is going to behave.…We want the draw app to draw a circle…as we click and move our mouse around the canvas.…Given that, it would probably make sense…that we have to draw our circle code inside the click event.…
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.