From 4326c97c95dddf4720d64758db3b861bcda6e0eb Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Wed, 31 May 2023 20:44:35 +0530 Subject: [PATCH] Added MPPHandLandmark --- .../tasks/ios/vision/hand_landmarker/BUILD | 5 ++ .../hand_landmarker/sources/MPPHandLandmark.h | 65 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmark.h diff --git a/mediapipe/tasks/ios/vision/hand_landmarker/BUILD b/mediapipe/tasks/ios/vision/hand_landmarker/BUILD index 482fae1d8..6c815f28d 100644 --- a/mediapipe/tasks/ios/vision/hand_landmarker/BUILD +++ b/mediapipe/tasks/ios/vision/hand_landmarker/BUILD @@ -55,3 +55,8 @@ objc_library( ], ) +objc_library( + name = "MPPHandLandmark", + hdrs = ["sources/MPPHandLandmark.h"], + module_name = "MPPHandLandmark", +) diff --git a/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmark.h b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmark.h new file mode 100644 index 000000000..fe08bde7e --- /dev/null +++ b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmark.h @@ -0,0 +1,65 @@ +// 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. +// See the License for the specific language governing permissions and +// limitations under the License. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The enum containing the 21 hand landmarks. + */ +typedef NS_ENUM(NSUInteger, MPPHandLandmark) { + MPPHandLandmarkWrist, + + MPPHandLandmarkThumbCMC, + + MPPHandLandmarkThumbMCP, + + MPPHandLandmarkThumbIP, + + MPPHandLandmarkIndexFingerMCP, + + MPPHandLandmarkIndexFingerPIP, + + MPPHandLandmarkIndexFingerDIP, + + MPPHandLandmarkIndexFingerTIP, + + MPPHandLandmarkMiddleFingerMCP, + + MPPHandLandmarkMiddleFingerPIP, + + MPPHandLandmarkMiddleFingerDIP, + + MPPHandLandmarkMiddleFingerTIP, + + MPPHandLandmarkRingFingerMCP, + + MPPHandLandmarkRingFingerPIP, + + MPPHandLandmarkRingFingerDIP, + + MPPHandLandmarkRingFingerTIP, + + MPPHandLandmarkPinkyMCP, + + MPPHandLandmarkPinkyPIP, + + MPPHandLandmarkPinkyDIP, + + MPPHandLandmarkPinkyTIP, + +} NS_SWIFT_NAME(HandLandmark); + +NS_ASSUME_NONNULL_END