PoseLandmarkerLiveStreamDelegate
protocol PoseLandmarkerLiveStreamDelegate : NSObjectProtocolThis protocol defines an interface for the delegates of PoseLandmarker to receive
results of performing asynchronous pose landmark detection on images (i.e, when runningMode =
.liveStream).
The delegate of PoseLandmarker must adopt PoseLandmarkerLiveStreamDelegate protocol.
The methods in this protocol are optional.
-
This method notifies a delegate that the results of asynchronous pose landmark detection of an image submitted to the
PoseLandmarkeris available.This method is called on a private serial dispatch queue created by the
PoseLandmarkerfor performing the asynchronous delegates calls.Declaration
Swift
func poseLandmarker(_ poseLandmarker: MPPPoseLandmarker, didFinishDetection result: PoseLandmarkerResult?, timestampInMilliseconds: Int, error: Error?)Parameters
poseLandmarkerThe pose landmarker which performed the pose landmark detection. This is useful to test equality when there are multiple instances of
PoseLandmarker.resultThe
PoseLandmarkerResultobject that contains a list of landmark.timestampInMillisecondsThe timestamp (in milliseconds) which indicates when the input image was sent to the pose landmarker.
errorAn optional error parameter populated when there is an error in performing pose landmark detection on the input live stream image data.