It is a simple module to detect hands and do simple projects with hand recognition and machine learning.
Uses:
- To find and detect hand.
- To find 21 landmarks in each hand.
- To find the distance between any 2 landmarks.
- To find if a finger is up or not.
- Can create a rectangle for the best hand detection zone.
Functions and their least requirements:
- HandDetector.FindHands:
Requiresimage (with atleast one hand);Returnsan image with hand landmarks drawn on it - HandDetector.FindLocation:
Requiresimage (with atleast one hand);Returnslocation of hand landmarks lmloc (dict), location of hand handloc (dict) - HandDetector.DrawLandmarks:
Requiresimage (with atleast one hand), index int value more than -1 but less than 21;ReturnsNone - HandDetector.fingersUp:
Requiresimage (with atleast one hand);Returnsinfo dict [fingername: bool] - HandDetector.fingersUp_PROTO:
RequiresNone;Returnsinfo dict [fingername: bool] - HandDetector.findDistance:
Requiresimage (with atleast one hand), id numbers of any two landmarks;Returnsimage with those landmarks drawn on it and a line connection those and the center point of that line, length the disance between - HandDetector.FindingZone:
Requiresimage (with atleast one hand);Returnslocation of rectangle FindingZonedim for the best hand detection zone
- It can provide all the finger names used in this module, which is stored in
Fingers. - It can provide all the hand landmarks, which is stored in
HandLandmark. - It can provide all the ways to flip an image by 'opencv-python', which is stored in
CVFlipCodes. - It can provide all the corner point names used in this module, which is stored in
CornerPoints. - It can put text at any given coordinate on the image screen with a background, with the help of
PutTextfunction.
For further information about any module, please see for the docs provided in each of the modules.
