Moved iOS MPPHandLandmark enum to MPPHandLandmarker.h
This commit is contained in:
parent
75daf4e756
commit
9d31827de8
|
@ -71,9 +71,3 @@ objc_library(
|
||||||
"//mediapipe/tasks/ios/vision/hand_landmarker/utils:MPPHandLandmarkerResultHelpers",
|
"//mediapipe/tasks/ios/vision/hand_landmarker/utils:MPPHandLandmarkerResultHelpers",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
objc_library(
|
|
||||||
name = "MPPHandLandmark",
|
|
||||||
hdrs = ["sources/MPPHandLandmark.h"],
|
|
||||||
module_name = "MPPHandLandmark",
|
|
||||||
)
|
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
// 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 <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
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
|
|
|
@ -21,6 +21,53 @@
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs hand landmarks detection on images.
|
* @brief Performs hand landmarks detection on images.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user