MediaPipeTasksVision Framework Reference

RunningMode

enum RunningMode : UInt, @unchecked Sendable

MediaPipe vision task running mode. A MediaPipe vision task can be run with three different modes: image, video and live stream.

  • The mode for running a mediapipe vision task on single image inputs.

    Declaration

    Swift

    case image = 0
  • The mode for running a mediapipe vision task on the decoded frames of a video.

    Declaration

    Swift

    case video = 1
  • The mode for running a mediapipe vision task on a live stream of input data, such as from the camera.

    Declaration

    Swift

    case liveStream = 2