Skip to main content

Posts

Showing posts with the label Drawing in air using finger

Writing In Air Using Finger In Python- Opencv

Today we will be discussing how you can write/paint in the air using your finger. We will be using Python language and Opencv library for this purpose. Check out the video below. Ok before starting we need to make a few assumptions for the proper working of this application. This background is always static i.e. there is no addition or subtraction of objects in the background scene. The background-color is always constant. It does not change with time. The object that will be used for writing/painting is of a different color than the background to give us sufficient contrast between foreground and background. We are ready to begin now. Let us start by installing necessary python libraries for our project using  pip install.  We will be needing  Numpy  and  Opencv  libraries. Now create a python project and create a new script. Import the required libraries into python script as shown below. import cv2 import numpy as np To captur...