MPPHandLandmarkerOptions
@interface MPPHandLandmarkerOptions : MPPTaskOptions <NSCopying>Options for setting up a HandLandmarker.
-
Running mode of the hand landmarker task. Defaults to
.image.HandLandmarkercan be created with one of the following running modes:image: The mode for performing hand landmark detection on single image inputs.video: The mode for performing hand landmark detection on the decoded frames of a video.liveStream: The mode for performing hand landmark detection on a live stream of input data, such as from the camera.
Declaration
Objective-C
@property (nonatomic) MPPRunningMode runningMode; -
An object that confirms to
HandLandmarkerLiveStreamDelegateprotocol. This object must implementhandLandmarker:didFinishDetectionWithResult:timestampInMilliseconds:error:to receive the results of performing asynchronous hand landmark detection on images (i.e, whenrunningMode=.liveStream).Declaration
Objective-C
@property (nonatomic, weak, nullable) id<MPPHandLandmarkerLiveStreamDelegate> handLandmarkerLiveStreamDelegate; -
The maximum number of hands that can be detected by the
HandLandmarker.Declaration
Objective-C
@property (nonatomic) NSInteger numHands; -
The minimum confidence score for the hand detection to be considered successful.
Declaration
Objective-C
@property (nonatomic) float minHandDetectionConfidence; -
The minimum confidence score of hand presence score in the hand landmark detection.
Declaration
Objective-C
@property (nonatomic) float minHandPresenceConfidence; -
The minimum confidence score for the hand tracking to be considered successful.
Declaration
Objective-C
@property (nonatomic) float minTrackingConfidence;