The invention discloses a virtual
piano based on 3D depth
camera module and a method for realizing same. The virtual
piano comprises a projection device, a 3D depth
camera module, a player, a communication module and a
processing module. The projection device is used for projecting the
piano key pattern and transmitting the projected key position parameters to the
processing module through the communication module. The 3D
depth imaging module is used for collecting the depth image of the user's hand in real time and transmitting it to the
processing module through the communication module. Theplayer is used for playing music tones; The processing module is used for analyzing the depth information of the hand according to the depth image of the hand, recognizing the knocking action of thehand, judging the knocking key situation according to the key position parameters, and controlling the player to play the corresponding music tone of the key according to the knocking key situation. The virtual piano can accurately identify the movement of the finger skeleton of the user, accurately judge the position of the finger percussion, play the corresponding music sound, smoothly simulatethe
piano playing, and also can bring good interactive experience.