UNPKG

@vladmandic/human

Version:

Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gesture Recognition

72 lines (69 loc) 2.44 kB
/* eslint-disable no-multi-spaces */ export const kpt: string[] = [ 'nose', // 0 'leftEyeInside', // 1 'leftEye', // 2 'leftEyeOutside', // 3 'rightEyeInside', // 4 'rightEye', // 5 'rightEyeOutside', // 6 'leftEar', // 7 'rightEar', // 8 'leftMouth', // 9 'rightMouth', // 10 'leftShoulder', // 11 'rightShoulder', // 12 'leftElbow', // 13 'rightElbow', // 14 'leftWrist', // 15 'rightWrist', // 16 'leftPinky', // 17 'rightPinky', // 18 'leftIndex', // 19 'rightIndex', // 20 'leftThumb', // 21 'rightThumb', // 22 'leftHip', // 23 'rightHip', // 24 'leftKnee', // 25 'rightKnee', // 26 'leftAnkle', // 27 'rightAnkle', // 28 'leftHeel', // 29 'rightHeel', // 30 'leftFoot', // 31 'rightFoot', // 32 'bodyCenter', // 33 'bodyTop', // 34 'leftPalm', // 35 // z-coord not ok 'leftHand', // 36 // similar to wrist but z-coord not ok 'rightPalm', // 37 // z-coord not ok 'rightHand', // 38 // similar to wrist but z-coord not ok ]; export const connected: Record<string, string[]> = { shoulders: ['leftShoulder', 'rightShoulder'], hips: ['rightHip', 'leftHip'], mouth: ['leftMouth', 'rightMouth'], leftLegUpper: ['leftHip', 'leftKnee'], leftLegLower: ['leftKnee', 'leftAnkle'], leftFoot: ['leftAnkle', 'leftHeel', 'leftFoot'], leftTorso: ['leftShoulder', 'leftHip'], leftArmUpper: ['leftShoulder', 'leftElbow'], leftArmLower: ['leftElbow', 'leftWrist'], leftHand: ['leftWrist', 'leftPalm'], leftHandPinky: ['leftPalm', 'leftPinky'], leftHandIndex: ['leftPalm', 'leftIndex'], leftHandThumb: ['leftPalm', 'leftThumb'], leftEyeOutline: ['leftEyeInside', 'leftEyeOutside'], rightLegUpper: ['rightHip', 'rightKnee'], rightLegLower: ['rightKnee', 'rightAnkle'], rightFoot: ['rightAnkle', 'rightHeel', 'rightFoot'], rightTorso: ['rightShoulder', 'rightHip'], rightArmUpper: ['rightShoulder', 'rightElbow'], rightArmLower: ['rightElbow', 'rightWrist'], rightHand: ['rightWrist', 'rightPalm'], rightHandPinky: ['rightPalm', 'rightPinky'], rightHandIndex: ['rightPalm', 'rightIndex'], rightHandThumb: ['rightPalm', 'rightThumb'], rightEyeOutline: ['rightEyeInside', 'rightEyeOutside'], };