Make a Virtual Pen and Eraser Using Python || Virtual Pen and Eraser Using OpenCV || Draw Using a Virtual Pen || Creation Code
Introduction
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
This project aims to create a virtual pen and eraser using OpenCV and Python
- First take the range
- Image proccessing
Before diving into this project, please make sure that you have installed Python3, OpenCV, and Numpy on your PC.
Before diving into this project, you should make sure that you have installed Python3, OpenCV and Numpy on your PC.
Install Python 3:
To install Python 3 on the the Windows platform, go to python.org/downloads and download the latest version of Python 3 (recommended is 64-bit). A setup wizard will be launched after downloading the file which will guide you through the installation process. You can also check out their official documentation for more information about installation steps at
https://docs.python.org/3/installation/#installing-on-windows-and-macosx
Install opencv3:
OpenCV library is available both through Conda package manager or pip package manager depending on which way suits you best in installing packages in the python environment
If you want to install them, please follow the below link for step by step installation guide.
- pip install numpy
- pip install opencv-python
Installation of Python3, OpenCV3 and NumPy on Ubuntu 16.04 LTS for Python 3.5
Step 1: Install python 3.5 on Ubuntu 16.04 LTS
sudo apt-get update
sudo apt-get install python3.5 python3-dev python3-pip python3-numpy libhdf5-dev libjpeg62 libpng-dev libtiff5 libtiffxx0c2 libjasper1v5 jasper2 openjpeg2 tbb# mkdir ~/virtual_keyboard# cd virtual_keyboard
Comments
Post a Comment