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:
Requires
image (with atleast one hand);Returns
an image with hand landmarks drawn on it - HandDetector.FindLocation:
Requires
image (with atleast one hand);Returns
location of hand landmarks lmloc (dict), location of hand handloc (dict) - HandDetector.DrawLandmarks:
Requires
image (with atleast one hand), index int value more than -1 but less than 21;Returns
None - HandDetector.fingersUp:
Requires
image (with atleast one hand);Returns
info dict [fingername: bool] - HandDetector.fingersUp_PROTO:
Requires
None;Returns
info dict [fingername: bool] - HandDetector.findDistance:
Requires
image (with atleast one hand), id numbers of any two landmarks;Returns
image with those landmarks drawn on it and a line connection those and the center point of that line, length the disance between - HandDetector.FindingZone:
Requires
image (with atleast one hand);Returns
location 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
PutText
function.
For further information about any module, please see for the docs provided in each of the modules.