This is a simplified version of mediapipe to do Hand Detection.

The function findHands will accept an RGB image and detects the hand in the frame and locate the key points and draws the landmarks, the function findPosition will give the position of the hand along with the id.

Then the main function where we initialize our module and also we write a while loop to run the model. Here you can install module by simple pip command as: pip install HandDetectorModule.