This project proposes an effective approach for writing in air using just the index fingertip. Our system uses an ordinary computer webcam to track the fingertip trajectory. A CNN model does object detection to classify the trajectory into 12 classes, 10 digits and 2 mathematical operators for addition and subtraction. Finally, these predictions are used for mathematical expression evaluation.
- main.py : Contains main program for finger detection to expression evaluation
- predict.py : Contains driver code for predictions of trajectory using trained model
- CNNModel.ipynb : Code for training the CNN model
- final_weights.h5 : Contains trained weigths of the model
- final_model_weight.h5 : Contains trained weights and model
-
Clone the repository from github
-
Create a Python virtual environment
$ python3 -m venv Write-In-Air
$ cd Write-In-Air
$ source bin/activate- Install requirements by using requirement.txt
$ pip3 install -r requirements.txt - Run the program
$ python3 main.py- Keep your hand in the given rectangle and start writing
Install the requirements provided in requirements.txt in Anaconda and run the program.