MediaPipeTasksVision Framework Reference

Protocols

The following protocols are available globally.

  • This protocol defines an interface for the delegates of FaceDetector face to receive results of performing asynchronous face detection on images (i.e, when runningMode = .liveStream).

    The delegate of FaceDetector must adopt FaceDetectorLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol FaceDetectorLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of FaceLandmarker face to receive results of performing asynchronous face detection on images (i.e, when runningMode = .liveStream).

    The delegate of FaceLandmarker must adopt FaceLandmarkerLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol FaceLandmarkerLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of GestureRecognizer object to receive results of performing asynchronous gesture recognition on images (i.e, when runningMode = .liveStream).

    The delegate of GestureRecognizer must adopt GestureRecognizerLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol GestureRecognizerLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of HandLandmarker object to receive results of performing asynchronous hand landmark detection on images (i.e, when runningMode = .liveStream).

    The delegate of HandLandmarker must adopt HandLandmarkerLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol HandLandmarkerLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of ImageClassifier object to receive results of asynchronous classification of images (i.e, when runningMode = .liveStream).

    The delegate of ImageClassifier must adopt ImageClassifierLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol ImageClassifierLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of ImageEmbedder object to receive results of asynchronous embedding extraction on images (i.e, when runningMode = .liveStream).

    The delegate of ImageEmbedder must adopt ImageEmbedderLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol ImageEmbedderLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of ImageSegmenter object to receive results of performing asynchronous segmentation on images (i.e, when runningMode = liveStream).

    The delegate of ImageSegmenter must adopt ImageSegmenterLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol ImageSegmenterLiveStreamDelegate : NSObjectProtocol
  • This protocol defines an interface for the delegates of ObjectDetector object to receive results of performing asynchronous object detection on images (i.e, when runningMode = .liveStream).

    The delegate of ObjectDetector must adopt ObjectDetectorLiveStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol ObjectDetectorLiveStreamDelegate : NSObjectProtocol
  • This 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.

    Declaration

    Swift

    protocol PoseLandmarkerLiveStreamDelegate : NSObjectProtocol