https://github.com/pottekkat/virtual-drums
A virtual drum set built using Open CV
https://github.com/pottekkat/virtual-drums
computer-vision machine-learning opencv virtual-drums
Last synced: 8 days ago
JSON representation
A virtual drum set built using Open CV
- Host: GitHub
- URL: https://github.com/pottekkat/virtual-drums
- Owner: pottekkat
- License: mit
- Created: 2020-05-25T09:02:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T23:53:45.000Z (8 months ago)
- Last Synced: 2025-04-03T04:12:38.934Z (29 days ago)
- Topics: computer-vision, machine-learning, opencv, virtual-drums
- Language: Python
- Homepage:
- Size: 1.89 MB
- Stars: 18
- Watchers: 2
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Virtual Drums
[](http://hits.dwyl.com/navendu-pottekkat/virtual-drums)
[](https://github.com/navendu-pottekkat/virtual-drums/issues)
[](https://opensource.org/licenses/MIT)
[](https://twitter.com/navendu_23)This project use Open CV to create a virtual drum set. It uses color detection in a region of interest and plays the corresponding drum beat. The drums are shown in the video output and hitting the drums with a green object would make you able to virtually play it.
Do give a star if you like this project!

## Installation
Clone and navigate into the directory. Install the required packages in your environment by using pip.
```bash
pip install -r requirements.txt
```## Usage
Open the project folder after installing requirements and run:
```bash
python virtual_drums.py
```You can use a green stick as your drumstick, I had a couple of green pens lying around.
## Tutorial
I have written an [article](https://medium.com/@navendupottekkat/virtual-drum-set-using-opencv-ebcb1553c778) explaining how this works. Please check that out!
## Contributing
[](https://github.com/navendu-pottekkat/virtual-drums/issues)You are free to use this code for any purpose. If you have built anything interesting, contribute it back to this project. You could add more drums and improve the overall performance.
## License
[MIT](https://choosealicense.com/licenses/mit/)