Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 572121726
  • Loading branch information
MediaPipe Team authored and copybara-github committed Oct 10, 2023
1 parent 3adc068 commit ac95421
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
11 changes: 5 additions & 6 deletions mediapipe/tasks/cc/vision/hand_landmarker/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ cc_library(
],
)

cc_library(
name = "hand_landmark",
hdrs = ["hand_landmark.h"],
visibility = ["//visibility:public"],
)

cc_library(
name = "hand_landmarks_detector_graph",
srcs = ["hand_landmarks_detector_graph.cc"],
Expand Down Expand Up @@ -175,3 +169,8 @@ cc_library(
)

# TODO: Enable this test

cc_library(
name = "hand_topology",
hdrs = ["hand_topology.h"],
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2022 The MediaPipe Authors.
/* Copyright 2023 The MediaPipe Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,36 +13,36 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#ifndef MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_
#define MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_
#ifndef MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_
#define MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_

namespace mediapipe::tasks::vision::hand_landmarker {

// The 21 hand landmarks.
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
// Hand model 21 landmark names.
enum class HandLandmarkName {
kWrist = 0,
kThumb1,
kThumb2,
kThumb3,
kThumb4,
kIndex1,
kIndex2,
kIndex3,
kIndex4,
kMiddle1,
kMiddle2,
kMiddle3,
kMiddle4,
kRing1,
kRing2,
kRing3,
kRing4,
kPinky1,
kPinky2,
kPinky3,
kPinky4,
};

} // namespace mediapipe::tasks::vision::hand_landmarker

#endif // MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_
#endif // MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_

0 comments on commit ac95421

Please sign in to comment.