AI is used to find positions of each finger, and determine distance from any one finger joint to another.
Joints are numbered as shown in the image below
We can now determine gestures such as pinching (distance from 4 to 8)