Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Air Canvas

  • Ever thought of drawing our imagination by just waving your finger in the air? In this project, we have built an Air Canvas which can draw anything on it by just capturing the motion of a colored marker with a camera.

Air Canvas is a Computer Vision based project which tracks a target and uses the said target to draw on air. It is developed in python programming language using opencv and numpy module.

Motivation for this idea

  • This project is created keeping in view that there is a need for a dustless class room for the students to study in. I know that there are many ways like touch screens and more but what about the schools which can’t afford it to buy such huge large screens and teach on them like a T.V.
  • So, I thought why not can a finger be tracked, but that too at a initial level without deep learning. Hence it was OpenCV which came to the rescue.

About this project

  • The preferred language is Python due to its exhaustive libraries and easy to use syntax but understanding the basics it can be implemented in any OpenCV supported language.
  • Here the motion of the target is captured by a webcam. The video from the webcam is processed by the computer to get an AR like image overlay on top of the live footage.
  • Here a colored object at the tip of the finger(target) is used as the marker.
  • Here Color Detection and tracking are used in order to achieve the objective.

How to Use?

  • You have to just blow your finger(target) in the air and see the magic.
  • To change the color of the pointer move the target up to the color changer option.

Setup instructions

  1. Install Python 3.x (recommended) from here
  2. Install opencv 2.x(recommended) from here
  3. Download this repository as zip and extract.
  4. open cmd prompt and adjust the directory to 'Air Canvas' folder.
  5. type this command to run the code
air_canvas.py
  1. Press Enter to run the code and start playing.
  2. Have fun!!

Output

output

Author

Sambit Kumar Tripathy