AI is used to find positions of each finger, and determine whether they are folded or extended. Then each finger is used to simulate a piano key being played