MPPPoseLandmarkerOptions
@interface MPPPoseLandmarkerOptions : MPPTaskOptions <NSCopying>Options for setting up a PoseLandmarker.
-
Running mode of the pose landmark dection task. Defaults to
.image.PoseLandmarkercan be created with one of the following running modes:.image: The mode for performing pose landmark detection on single image inputs..video: The mode for performing pose landmark detection on the decoded frames of a video..liveStream: The mode for performing pose 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
PoseLandmarkerLiveStreamDelegateprotocol. This object must implementposeLandmarker(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)to receive the results of performing asynchronous pose landmark detection on images (i.e, whenrunningMode=.liveStream).Declaration
Objective-C
@property (nonatomic, weak, nullable) id<MPPPoseLandmarkerLiveStreamDelegate> poseLandmarkerLiveStreamDelegate; -
The maximum number of poses that can be detected by the
PoseLandmarker. Defaults to 1.Declaration
Objective-C
@property (nonatomic) NSInteger numPoses; -
The minimum confidence score for pose detection to be considered successful. Defaults to 0.5.
Declaration
Objective-C
@property (nonatomic) float minPoseDetectionConfidence; -
The minimum confidence score of pose presence score in the pose landmark detection. Defaults to 0.5.
Declaration
Objective-C
@property (nonatomic) float minPosePresenceConfidence; -
The minimum confidence score for pose tracking to be considered successful. Defaults to 0.5.
Declaration
Objective-C
@property (nonatomic) float minTrackingConfidence; -
Whether to output segmentation masks. Defaults to
false.Declaration
Objective-C
@property (nonatomic) BOOL shouldOutputSegmentationMasks;