pottekkat / virtual-drums

A virtual drum set built using Open CV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Virtual Drums

HitCount contributions welcome License: MIT Twitter

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!

Preview

Installation

Clone and navigate into the directory. Install the required packages in your environment by using pip.

pip install -r requirements.txt

Usage

Open the project folder after installing requirements and run:

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 explaining how this works. Please check that out!

Contributing

contributions welcome

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

About

A virtual drum set built using Open CV

License:MIT License


Languages

Language:Python 100.0%