Computer vision drum simulator that produces drum sounds while a user is "air drumming" with two colored drum sticks in front of a webcam.
This project has been a way to learn and get experience with computer vision.
Built with
- Allows users to ”air drum” in front of a webcam while hearing realistic drum sounds for each ”hit”
- The X-Axis is split into three different sections, each representing a different sound - kick drum, snare drum, and hihat
- Tracks two colored drum sticks and calculates ”hits” based off of downward movement
- Plays different volumes corresponding to different stick heights
PyImageSearch has excellent tutorials on masking colors and tracking objects that were greatly useful for this project. I followed the tutorial on tracking a solid colored ball and expanded it to work for a drumming application.
