Add hand landmark named index constants
PiperOrigin-RevId: 489498248
This commit is contained in:
committed by
Copybara-Service
parent
2f361e2f47
commit
03d388fecf
@@ -33,3 +33,28 @@ export declare interface Landmark {
|
||||
/** Whether this landmark is normalized with respect to the image size. */
|
||||
normalized: boolean;
|
||||
}
|
||||
|
||||
/** The 21 hand landmarks. */
|
||||
export const enum HandLandmark {
|
||||
WRIST = 0,
|
||||
THUMB_CMC = 1,
|
||||
THUMB_MCP = 2,
|
||||
THUMB_IP = 3,
|
||||
THUMB_TIP = 4,
|
||||
INDEX_FINGER_MCP = 5,
|
||||
INDEX_FINGER_PIP = 6,
|
||||
INDEX_FINGER_DIP = 7,
|
||||
INDEX_FINGER_TIP = 8,
|
||||
MIDDLE_FINGER_MCP = 9,
|
||||
MIDDLE_FINGER_PIP = 10,
|
||||
MIDDLE_FINGER_DIP = 11,
|
||||
MIDDLE_FINGER_TIP = 12,
|
||||
RING_FINGER_MCP = 13,
|
||||
RING_FINGER_PIP = 14,
|
||||
RING_FINGER_DIP = 15,
|
||||
RING_FINGER_TIP = 16,
|
||||
PINKY_MCP = 17,
|
||||
PINKY_PIP = 18,
|
||||
PINKY_DIP = 19,
|
||||
PINKY_TIP = 20
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user