Skip to main content

Posts

Showing posts from July, 2022

Make a Virtual Pen and Eraser Using Python || Virtual Pen and Eraser Using OpenCV || Draw Using a Virtual Pen || Creation Code

 Introduction The project aims to create a virtual pen and eraser using OpenCV and python. This project is very simple and easy to implement. The code is given in this article which you can easily copy and paste into a file and run it on your machine. In this article, we will be using OpenCV for detection of the mouse movements, PyQt5 for GUI creation, Numpy for storing data as well as NumPy array manipulation functions such as slicing and indexing along with Pandas Dataframes which are very helpful while working with Numpy arrays. Virtual Pen and Eraser Using OpenCV In this section, you will learn how to create a virtual pen and eraser by using OpenCV. The first step is importing the required Python libraries. We need to import the cv2 module from opencv library import cv2 import numpy as np This project aims to create a virtual pen and eraser using OpenCV and Python The project aims to create a virtual pen and eraser using opencv and python. This is a very interesting topic for th