From the course: OpenCV for Python Developers
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Create custom interfaces
From the course: OpenCV for Python Developers
Create custom interfaces
- With a working knowledge of how to create real-time video feeds, it becomes possible to design our own real-time interfaces. To begin, we're going to start off with the same code that we created in the previous module. Google Co-Lab learners will not be able to follow along, so please use a local install of OpenCV. In this video, we're going to be drawing a circle onto the screen and we're going to be placing the circle based on wherever we have last clicked. To start off with, let's start creating our circle definition. Firstly, we want to initialize a few variables. The first variable will be the color of our circle. For example, we can define our color to be green by typing color =, and then in parentheses, 0,255,0. Note that 255 is assuming, as is typical, that the webcam has a unsigned integer eight depth. Next, we're going to define our line width of the circle, line_width = 3. Note that if we gave a value of -1,…
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
-
-
-
-
Get started with OpenCV and Python5m 36s
-
(Locked)
Get started with OpenCV and Python: Google Collab6m 5s
-
(Locked)
Access and understand pixel data4m 12s
-
(Locked)
Data types and structures7m 36s
-
(Locked)
Image types and color channels8m 51s
-
(Locked)
Pixel manipulations and filtering4m 41s
-
(Locked)
Blur, dilation, and erosion5m 50s
-
(Locked)
Scale and rotate images5m 14s
-
(Locked)
Use video inputs4m 57s
-
(Locked)
Create custom interfaces4m 50s
-
(Locked)
Challenge: Create a simple drawing app2m 15s
-
(Locked)
Solution: Create a simple drawing app7m 32s
-
-
-
-