MediaPipeTasksVision Framework Reference

HolisticLandmarker

class HolisticLandmarker : NSObject

Performs combined face, pose, and hand holistic landmarks detection on images, video frames, and live camera streams.

  • Creates a new instance of HolisticLandmarker from an absolute path to a model asset bundle stored locally on the device and the default HolisticLandmarkerOptions.

    Declaration

    Swift

    convenience init(modelPath: String) throws
  • Creates a new instance of HolisticLandmarker from the given HolisticLandmarkerOptions.

    Declaration

    Swift

    init(options: HolisticLandmarkerOptions) throws
  • Performs synchronous holistic landmarks detection on the provided MPImage in .image running mode.

    Declaration

    Swift

    func detect(image: MPImage) throws -> HolisticLandmarkerResult
  • Performs synchronous holistic landmarks detection on a decoded video frame in .video running 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 .liveStream running mode; results are delivered to HolisticLandmarkerLiveStreamDelegate.

    Declaration

    Swift

    func detectAsync(image: MPImage, timestampInMilliseconds: Int) throws