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

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,…

Contents