HolisticLandmarkerLiveStreamDelegate
protocol HolisticLandmarkerLiveStreamDelegate : NSObjectProtocolThis protocol defines an interface for the delegates of HolisticLandmarker to receive results of performing asynchronous holistic landmarks detection on images (i.e, when runningMode = .liveStream).
The delegate of FaceLandmarker must adopt FaceLandmarkerLiveStreamDelegate protocol. The methods in this protocol are optional.
-
This method notifies a delegate that the results of asynchronous holistic landmarks detection of an image submitted to the
HolisticsLandmarkeris available.This method is called on a private serial dispatch queue created by the
HolisticLandmarkerfor performing the asynchronous delegates calls.Declaration
Swift
func holisticLandmarker(_ holisticLandmarker: HolisticLandmarker, didFinishDetection result: HolisticLandmarkerResult?, timestampInMilliseconds: Int, error: (any Error)?)Parameters
holisticLandmarkerThe holistic landmarker which performed the holistic landmarks detection. This is useful to test equality when there are multiple instances of
HolisticLandmarker.resultThe
HolisticLandmarkerResultobject that contains a list of landmarks.timestampInMillisecondsThe timestamp (in milliseconds) which indicates when the input image was sent to the holistic landmarker.
errorAn optional error parameter populated when there is an error in performing holistic landmarks detection on the input live stream image data.