diff --git a/mediapipe/tasks/cc/vision/pose_landmarker/BUILD b/mediapipe/tasks/cc/vision/pose_landmarker/BUILD index 823429ed5..a706b405e 100644 --- a/mediapipe/tasks/cc/vision/pose_landmarker/BUILD +++ b/mediapipe/tasks/cc/vision/pose_landmarker/BUILD @@ -167,6 +167,6 @@ cc_library( ) cc_library( - name = "pose_landmark", - hdrs = ["pose_landmark.h"], + name = "pose_topology", + hdrs = ["pose_topology.h"], ) diff --git a/mediapipe/tasks/cc/vision/pose_landmarker/pose_landmark.h b/mediapipe/tasks/cc/vision/pose_landmarker/pose_topology.h similarity index 74% rename from mediapipe/tasks/cc/vision/pose_landmarker/pose_landmark.h rename to mediapipe/tasks/cc/vision/pose_landmarker/pose_topology.h index 36c628145..555ea5302 100644 --- a/mediapipe/tasks/cc/vision/pose_landmarker/pose_landmark.h +++ b/mediapipe/tasks/cc/vision/pose_landmarker/pose_topology.h @@ -1,11 +1,8 @@ /* 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. 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. @@ -13,18 +10,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_LANDMARK_H_ -#define MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_LANDMARK_H_ +#ifndef MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_TOPOLOGY_H_ +#define MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_TOPOLOGY_H_ -namespace mediapipe { -namespace tasks { -namespace vision { -namespace pose_landmarker { +namespace mediapipe::tasks::vision::pose_landmarker { static constexpr int kNumPoseLandmarks = 33; // BlazePose 33 landmark names. -enum class PoseLandmark { +enum class PoseLandmarkName { kNose = 0, kLeftEyeInner, kLeftEye, @@ -60,9 +54,6 @@ enum class PoseLandmark { kRightFootIndex, }; -} // namespace pose_landmarker -} // namespace vision -} // namespace tasks -} // namespace mediapipe +} // namespace mediapipe::tasks::vision::pose_landmarker -#endif // MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_LANDMARK_H_ +#endif // MEDIAPIPE_TASKS_CC_VISION_POSE_LANDMARKER_POSE_TOPOLOGY_H_