HolisticLandmarker
class HolisticLandmarker : NSObjectPerforms combined face, pose, and hand holistic landmarks detection on images, video frames, and live camera streams.
-
Creates a new instance of
HolisticLandmarkerfrom an absolute path to a model asset bundle stored locally on the device and the defaultHolisticLandmarkerOptions.Declaration
Swift
convenience init(modelPath: String) throws -
Creates a new instance of
HolisticLandmarkerfrom the givenHolisticLandmarkerOptions.Declaration
Swift
init(options: HolisticLandmarkerOptions) throws -
Performs synchronous holistic landmarks detection on the provided
MPImagein.imagerunning mode.Declaration
Swift
func detect(image: MPImage) throws -> HolisticLandmarkerResult -
Performs synchronous holistic landmarks detection on a decoded video frame in
.videorunning mode with a monotonically increasing millisecond timestamp.Declaration
Swift
func detect(videoFrame image: MPImage, timestampInMilliseconds: Int) throws -> HolisticLandmarkerResult -
Sends live stream image data to perform asynchronous holistic landmarks detection in
.liveStreamrunning mode; results are delivered toHolisticLandmarkerLiveStreamDelegate.Declaration
Swift
func detectAsync(image: MPImage, timestampInMilliseconds: Int) throws