GestureTunes is a Python project that tracks the user's hands using the OpenCV library and creates music based on the number of fingers detected on each hand. The project uses two different instruments: a sitar sound for the left hand and a piano sound for the right hand. If only one hand is detected, the instrument used will depend on the position of the hand on the screen. If the hand is on the left side of the screen, the sitar sound will be used, and if the hand is on the right side, the piano sound will be used.
To install GestureTunes, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run the following command in your terminal:
pip install -r requirements.txt
- Navigate to the project directory.
- Run the following command in your terminal:
python main.py
- Once the script is running, you should see a message like this:
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
- Open your web browser and go to the URL displayed in the message.
- Place your hand in front of the camera to hear the musical notes corresponding to the fingercounts.
GestureTunes uses the following libraries:
- Flask
- OpenCV
- Pygame
Contributions are always welcome! If you have any suggestions or find any bugs, please create a new issue or submit a pull request.