Virtual-Piano is an AI-powered virtual piano that lets you play piano in the air without needing a physical instrument.
Using computer vision, it detects finger movements and simulates key presses, allowing users to create music seamlessly.
- π΅ Air Gesture Control β Play piano using only Finger movements.
- π Computer Vision-Based Detection β Detects finger speed and motion to simulate key presses.
- π’ 10 Simultaneous Notes β Allows playing up to 10 notes at a time.
- π Smart Octave Control β Close your eyes for 3 seconds to shift octaves automatically.
- πΉ Real-time Tracking β Uses webcam-based tracking for precise hand motion recognition.
- Python π
- OpenCV π₯ (Computer Vision for motion detection)
- MediaPipe β (Hand tracking)
- PyGame π (Audio processing)
- NumPy π’ (Data processing)
- Start the Application β The webcam captures hand movements in real time.
- Detect Finger Motion β When fingers move downward at a certain speed, it is considered a key press.
- Play Notes β The system plays corresponding piano notes based on detected hand positions.
- Switch Octaves β Close your eyes for 3 seconds to change octaves.
- Enjoy Playing! πΆ
- Clone the repo to Your local machine.
- Make sure that your webcam connectd
- Finally to run the piano run
Launcher1.pyorLauncher2.pyfile. Launcher1.pyfor basic piano andLauncher2.pyto shift Octaves
Ensure you have any version of Python below 3.12 installed.
pip install opencv-python mediapipe numpy pygame