internal change
PiperOrigin-RevId: 491429214
This commit is contained in:
committed by
Copybara-Service
parent
153edc59a1
commit
c48ca1f674
@@ -33,28 +33,3 @@ 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
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ mediapipe_ts_library(
|
||||
mediapipe_ts_declaration(
|
||||
name = "hand_landmarker_types",
|
||||
srcs = [
|
||||
"hand_landmark.d.ts",
|
||||
"hand_landmarker_options.d.ts",
|
||||
"hand_landmarker_result.d.ts",
|
||||
],
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Copyright 2022 The MediaPipe Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/** 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