MPPHandLandmarker
@interface MPPHandLandmarker : NSObject@brief Performs hand landmarks detection on images.
This API expects a pre-trained hand landmarks model asset bundle.
- 
                  
                  The array of connections between the landmarks in the palm. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handPalmConnections;
- 
                  
                  The array of connections between the landmarks in the thumb. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handThumbConnections;
- 
                  
                  The array of connections between the landmarks in the index finger. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handIndexFingerConnections;
- 
                  
                  The array of connections between the landmarks in the middle finger. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handMiddleFingerConnections;
- 
                  
                  The array of connections between the landmarks in the ring finger. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handRingFingerConnections;
- 
                  
                  The array of connections between the landmarks in the pinky. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handPinkyConnections;
- 
                  
                  The array of connections between all the landmarks in the hand. DeclarationObjective-C @property (class, nonatomic, readonly) NSArray<MPPConnection *> *_Nonnull handConnections;
- 
                  
                  Creates a new instance of HandLandmarkerfrom an absolute path to a model asset bundle stored locally on the device and the defaultHandLandmarkerOptions.DeclarationObjective-C - (nullable instancetype)initWithModelPath:(nonnull NSString *)modelPath error:(NSError *_Nullable *_Nullable)error;ParametersmodelPathAn absolute path to a model asset bundle stored locally on the device. errorAn optional error parameter populated when there is an error in initializing the hand landmarker. Return ValueA new instance of HandLandmarkerwith the given model path.nilif there is an error in initializing the hand landmarker.
- 
                  
                  Creates a new instance of HandLandmarkerfrom the givenHandLandmarkerOptions.DeclarationObjective-C - (nullable instancetype)initWithOptions: (nonnull MPPHandLandmarkerOptions *)options error:(NSError *_Nullable *_Nullable)error;ParametersoptionsThe options of type HandLandmarkerOptionsto use for configuring theHandLandmarker.errorAn optional error parameter populated when there is an error in initializing the hand landmarker. Return ValueA new instance of HandLandmarkerwith the given options.nilif there is an error in initializing the hand landmarker.
- 
                  
                  Performs hand landmarks detection on the provided MPImageusing the whole image as region of interest. Rotation will be applied according to theorientationproperty of the providedMPImage. Only use this method when theHandLandmarkeris created with running mode,.image.This method supports performing hand landmarks detection on RGBA images. If your MPImagehas a source type of.pixelBufferor.sampleBuffer, the underlying pixel buffer must usekCVPixelFormatType_32BGRAas its pixel format.If your MPImagehas a source type of.imageensure that the color space is RGB with an Alpha channel.DeclarationObjective-C - (nullable MPPHandLandmarkerResult *) detectImage:(nonnull MPPImage *)image error:(NSError *_Nullable *_Nullable)error;ParametersimageThe MPImageon which hand landmarks detection is to be performed.errorAn optional error parameter populated when there is an error in performing hand landmarks detection on the input image. Return ValueAn HandLandmarkerResultobject that contains the hand hand landmarks detection results.
- 
                  
                  Performs hand landmarks detection on the provided video frame of type MPImageusing the whole image as region of interest. Rotation will be applied according to theorientationproperty of the providedMPImage. Only use this method when theHandLandmarkeris created with running mode,.video.It’s required to provide the video frame’s timestamp (in milliseconds). The input timestamps must be monotonically increasing. This method supports performing hand landmarks detection on RGBA images. If your MPImagehas a source type of.pixelBufferor.sampleBuffer, the underlying pixel buffer must usekCVPixelFormatType_32BGRAas its pixel format.If your MPImagehas a source type of.imageensure that the color space is RGB with an Alpha channel.DeclarationObjective-C - (nullable MPPHandLandmarkerResult *) detectVideoFrame:(nonnull MPPImage *)image timestampInMilliseconds:(NSInteger)timestampInMilliseconds error:(NSError *_Nullable *_Nullable)error;ParametersimageThe MPImageon which hand landmarks detection is to be performed.timestampInMillisecondsThe video frame’s timestamp (in milliseconds). The input timestamps must be monotonically increasing. errorAn optional error parameter populated when there is an error in performing hand landmarks detection on the input video frame. Return ValueAn HandLandmarkerResultobject that contains the hand hand landmarks detection results.
- 
                  
                  Sends live stream image data of type MPImageto perform hand landmarks detection using the whole image as region of interest. Rotation will be applied according to theorientationproperty of the providedMPImage. Only use this method when theHandLandmarkeris created with running mode,.liveStream.The object which needs to be continuously notified of the available results of hand landmarks detection must confirm to HandLandmarkerLiveStreamDelegateprotocol and implement thehandLandmarker(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)delegate method.It’s required to provide a timestamp (in milliseconds) to indicate when the input image is sent to the hand landmarker. The input timestamps must be monotonically increasing. This method supports performing hand landmarks detection on RGBA images. If your MPImagehas a source type of.pixelBufferor.sampleBuffer, the underlying pixel buffer must usekCVPixelFormatType_32BGRAas its pixel format.If the input MPImagehas a source type of.imageensure that the color space is RGB with an Alpha channel.If this method is used for performing hand landmarks detection on live camera frames using AVFoundation, ensure that you requestAVCaptureVideoDataOutputto output frames inkCMPixelFormat_32BGRAusing itsvideoSettingsproperty.DeclarationObjective-C - (BOOL)detectAsyncImage:(nonnull MPPImage *)image timestampInMilliseconds:(NSInteger)timestampInMilliseconds error:(NSError *_Nullable *_Nullable)error;ParametersimageA live stream image data of type MPImageon which hand landmarks detection is to be performed.timestampInMillisecondsThe timestamp (in milliseconds) which indicates when the input image is sent to the hand landmarker. The input timestamps must be monotonically increasing. errorAn optional error parameter populated when there is an error in performing hand landmarks detection on the input live stream image data. Return ValueYESif the image was sent to the task successfully, otherwiseNO.
- 
                  
                  Undocumented DeclarationObjective-C - (instancetype)init NS_UNAVAILABLE;
- 
                  
                  Undocumented DeclarationObjective-C + (instancetype)new NS_UNAVAILABLE;