Structures
The following declarations are available globally.
-
Describes the channel count and sample rate of an audio stream or buffer.
Declaration
Swift
struct AudioDataFormat: Sendable, Equatable, Hashable -
Audio segment within a multimodal content block.
Declaration
Swift
struct AudioPart: Sendable, Equatable, Hashable -
Base options shared across MediaPipe Tasks for model loading and hardware delegation.
Declaration
Swift
struct BaseOptions: Sendable, Equatable, Hashable -
Classification results produced across all output heads of a classification model.
Declaration
Swift
struct ClassificationResult: Sendable, Equatable, Hashable -
Predicted categories for a single classifier output head.
Declaration
Swift
struct Classifications: Sendable, Equatable, Hashable -
Classifier options shared across MediaPipe classification tasks.
Declaration
Swift
struct ClassifierOptions: Sendable, Equatable, Hashable -
An undirected or directed edge connecting two landmark indices.
Declaration
Swift
struct Connection: Sendable, Equatable, Hashable -
A single detected object with predicted categories, bounding box, and optional keypoints.
Declaration
Swift
struct Detection: Sendable, Equatable, Hashable -
Detection results produced by a detection model.
Declaration
Swift
struct DetectionResult: Sendable, Equatable, Hashable -
Embedder options shared across MediaPipe embedding extraction tasks.
Declaration
Swift
struct EmbedderOptions: Sendable, Equatable, Hashable -
Feature vector produced by a single embedder output head.
Declaration
Swift
struct Embedding: Sendable, Equatable, Hashable -
Embedding results produced across all output heads of an embedding model.
Declaration
Swift
struct EmbeddingResult: Sendable, Equatable, Hashable -
Image segment within a multimodal content block.
Declaration
Swift
struct ImagePart: Sendable, Equatable, Hashable -
Options for cropping and rotating input images prior to MediaPipe Vision Task inference.
Declaration
Swift
struct ImageProcessingOptions: Sendable, Equatable, Hashable -
A 3D point in world space with coordinates measured in meters.
Declaration
Swift
struct Landmark: Sendable, Equatable, Hashable -
A 2D keypoint with coordinates normalized to
[0.0, 1.0]by the image width and height.Declaration
Swift
struct NormalizedKeypoint: Sendable, Equatable, Hashable -
A 3D point with
xandycoordinates normalized to[0.0, 1.0]by the image dimensions.Declaration
Swift
struct NormalizedLandmark: Sendable, Equatable, Hashable -
Region of interest (ROI) used to guide interactive segmentation inference.
Declaration
Swift
struct RegionOfInterest: Sendable, Equatable, Hashable -
A single classification category containing a label, optional display name, confidence score, and label index.
Declaration
Swift
struct ResultCategory: Sendable, Equatable, Hashable -
Structured error thrown by MediaPipe Tasks operations.
Declaration
Swift
struct TasksError: Error, Sendable, Equatable, Hashable, LocalizedError, CustomNSError -
UTF-8 text segment within a multimodal content block.
Declaration
Swift
struct TextPart: Sendable, Equatable, Hashable