Virtual Piano
Play piano using hand gestures and computer vision
Created on 24th October 2026
•
Virtual Piano
Play piano using hand gestures and computer vision
The problem Virtual Piano solves
Traditional piano playing requires a physical instrument, which can be expensive and difficult to carry. My Virtual Piano solve this problem by allowing users to play musical notes using simple hand gestures in front of a webcam.
Using computer vision and real-time hand tracking, the system detects fingertip positions and maps them to virtual piano keys. It provides an interactive and accessible way to explore music without needing a physical piano, making music experimentation more convenient and engaging.

Challenges we ran into
During development, I faced challenges in detecting hand movements accurately and mapping fingertip positions to the correct virtual piano keys. I also encountered compatibility issues with the MediaPipe library and had to configure the appropriate version to make hand tracking work correctly.
I addressed these challenges by adjusting the hand-tracking logic, using fingertip landmarks to detect interactions with the piano keys, and resolving the library compatibility issue. I also improved the sound-triggering logic to support multiple notes being played simultaneously. This experience helped me improve my debugging, computer vision, and Python programming skills.

Tracks Applied (2)