{"id":28319537,"url":"https://github.com/yeswanthvelugoti/ai-virtual-drumset","last_synced_at":"2026-05-06T01:32:33.897Z","repository":{"id":213582176,"uuid":"550369970","full_name":"YeswanthVelugoti/AI-Virtual-Drumset","owner":"YeswanthVelugoti","description":"Virtual Drumset is a fun and interactive computer vision project built using Python and OpenCV. It lets users play a virtual drumset by simply moving colored objects (like pens or sticks) in front of a webcam. No physical drumset required!","archived":false,"fork":false,"pushed_at":"2025-05-21T06:59:45.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T18:39:15.674Z","etag":null,"topics":["ai","drumset","imutils","opencv","pyautogui","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YeswanthVelugoti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-12T16:41:17.000Z","updated_at":"2025-05-21T07:05:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"2311df37-fbd3-4103-a423-2d6cfeb028ce","html_url":"https://github.com/YeswanthVelugoti/AI-Virtual-Drumset","commit_stats":null,"previous_names":["yeswanthvelugoti/virtual-drumset---ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YeswanthVelugoti/AI-Virtual-Drumset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YeswanthVelugoti%2FAI-Virtual-Drumset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YeswanthVelugoti%2FAI-Virtual-Drumset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YeswanthVelugoti%2FAI-Virtual-Drumset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YeswanthVelugoti%2FAI-Virtual-Drumset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YeswanthVelugoti","download_url":"https://codeload.github.com/YeswanthVelugoti/AI-Virtual-Drumset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YeswanthVelugoti%2FAI-Virtual-Drumset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32674890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","drumset","imutils","opencv","pyautogui","python"],"created_at":"2025-05-25T09:11:02.729Z","updated_at":"2026-05-06T01:32:33.892Z","avatar_url":"https://github.com/YeswanthVelugoti.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥁 AI-Based Virtual Drumset 🎵\n\nA real-time virtual drumset built using Python and OpenCV that allows you to play drums using colored objects (like sticks or markers) tracked by your webcam. When a colored object enters predefined zones on the screen, the system triggers keyboard events to simulate drum hits.\n\n---\n\n## 🚀 Features\n\n- 🎯 **Color-based object tracking** using HSV masking.\n- 🎥 **Live webcam feed** processing with OpenCV.\n- ⌨️ **Keyboard simulation** using PyAutoGUI to trigger drum sounds.\n- 📏 **Interactive hit zones** detected using contour analysis.\n- ⚡ **Real-time response** with optimized video frame handling.\n\n---\n\n## 🧠 How It Works\n\n1. Capture webcam video using OpenCV.\n2. Convert frames to **HSV color space** to isolate specific colors (e.g., red or blue).\n3. Track motion of colored objects (drumsticks) by detecting contours.\n4. Define **zones on the screen** where a hit triggers a specific keypress.\n5. Use `pyautogui.press()` to simulate keypress events (e.g., mapped to drums in a DAW or online drum kit).\n\n---\n\n## 🛠️ Technologies Used\n\n- Python 3.x\n- OpenCV\n- NumPy\n- PyAutoGUI\n- Imutils\n\n---\n\n## 📸 Screenshots\n\n\u003e \n![github](https://github.com/YeswanthVelugoti/Virtual-DrumSet---AI/blob/main/virtualdrumsoutput.jpg)\n---\n\n## 🧪 How to Run\n\n### 1. Clone the repository:\n```bash\ngit clone https://github.com/your-username/AI-virtual-drumset.git\ncd AI-virtual-drumset\n```\n\n### 2. Install dependencies:\n```bash\npip install opencv-python numpy pyautogui imutils\n```\n\n### 3. Run the script:\n```bash\npython virtual_drumset.py\n```\n\nMake sure your webcam is active. Use a red/blue colored object to simulate a drumstick.\n\n---\n\n## 🎯 Applications\n\n- Virtual musical instrument interfaces\n- Interactive music education tools\n- Gesture-controlled interfaces\n- Fun AI/Computer Vision projects for students and beginners\n\n---\n\n## 🙋‍♂️ Author\n\n**Yeswanth Sai Kumar Velugoti**  \n[Email](mailto:yeswanthvelugoti@gmail.com) • [LinkedIn](https://www.linkedin.com/in/yeswanth-velugoti-4290741a0/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeswanthvelugoti%2Fai-virtual-drumset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeswanthvelugoti%2Fai-virtual-drumset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeswanthvelugoti%2Fai-virtual-drumset/lists"}