This project is about drawing on air with hand movements and recognize gestures.
Go to the official Python website at python.org and install python version 3.
-
- OpenCV (cv2) is a library for computer vision and image processing tasks. It's one of the most widely used libraries for such tasks in Python. You can install it via pip using:
pip install opencv-python
-
- MediaPipe is a framework developed by Google for building multimodal machine learning pipelines, particularly for processing perceptual data such as images, audio, and video. You can install it via pip using:
pip install mediapipe
-
- NumPy is a fundamental package for scientific computing with Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. You can install it via pip using:
pip install numpy
-
- pyttsx3 is a text-to-speech conversion library in Python. It works offline and supports multiple TTS engines. You can install it via pip using:
pip install pyttsx3
-
- These packages are part of the IPython ecosystem and are commonly used for creating interactive widgets and displaying multimedia content in Jupyter Notebooks or IPython environments. They are typically installed as part of the Jupyter ecosystem, but you can install them separately via pip using:
pip install ipywidgets
- Rather than installing about packages one by one, here is a easy step to do, open command prompt and execute below code snippet 👇
pip install -r import_packages.txt
-
- Change Camera WIDTH and HEIGHT as required
NOTE: Use only camera resolutions values
- How to add new gesture
- Add new gesture in
getSign
function based on fingers which are open- Return an object of, 1. text - that need to be printed on command prompt and voice out. 2. message - that need to be displayed on screen
- Add new gesture in
- Shapes that can be selected:
- Line
- Rectangle
- Draw
- Circle
- Erase
- How to select a Shape
Open index finger to move any where, place index finger on any tools that need to be selected for
0.8 sec
- How to draw a Shape Open middle finger along with index finger, draw on the screen
- Gestures that can be recognized: Recognized gesture would be displayed on command prompt and sound is triggered
- Change Camera WIDTH and HEIGHT as required