MediaPipe
  • MediaPipe
Solutions Framework
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Français
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어
GitHub Sign in
  • Solutions
Studio
Overview Guide Examples API
MediaPipe
  • MediaPipe
  • Solutions
    • Overview
    • Guide
    • Examples
    • API
  • Framework
  • GitHub
  • Overview
  • Tasks
    • Python
      • mp
        • Overview
        • CalculatorGraph
        • GraphInputStreamAddMode
        • Image
        • ImageFormat
        • ImageFrame
        • Matrix
        • Packet
        • Timestamp
        • ValidatedGraphConfig
      • mp.calculators
        • Overview
        • core
          • Overview
          • constant_side_packet_calculator_pb2
            • Overview
            • ConstantSidePacketCalculatorOptions
            • ConstantSidePacketCalculatorOptions.ConstantSidePacket
            • mediapipe_dot_framework_dot_calculator__options__pb2
              • Overview
              • CalculatorOptions
            • mediapipe_dot_framework_dot_calculator__pb2
              • Overview
              • CalculatorGraphConfig
              • CalculatorGraphConfig.Node
              • ExecutorConfig
              • InputCollection
              • InputCollectionSet
              • InputStreamInfo
              • ProfilerConfig
              • mediapipe_dot_framework_dot_mediapipe__options__pb2
                • Overview
                • MediaPipeOptions
              • mediapipe_dot_framework_dot_packet__factory__pb2
                • Overview
                • PacketFactoryConfig
                • PacketFactoryOptions
                • PacketManagerConfig
              • mediapipe_dot_framework_dot_packet__generator__pb2
                • Overview
                • PacketGeneratorConfig
                • PacketGeneratorOptions
              • mediapipe_dot_framework_dot_status__handler__pb2
                • Overview
                • StatusHandlerConfig
              • mediapipe_dot_framework_dot_stream__handler__pb2
                • Overview
                • InputStreamHandlerConfig
                • OutputStreamHandlerConfig
            • mediapipe_dot_framework_dot_formats_dot_classification__pb2
              • Overview
              • Classification
              • ClassificationList
              • ClassificationListCollection
            • mediapipe_dot_framework_dot_formats_dot_landmark__pb2
              • Overview
              • Landmark
              • LandmarkList
              • LandmarkListCollection
              • NormalizedLandmark
              • NormalizedLandmarkList
              • NormalizedLandmarkListCollection
            • mediapipe_dot_framework_dot_formats_dot_matrix__data__pb2
              • Overview
              • MatrixData
            • mediapipe_dot_framework_dot_formats_dot_time__series__header__pb2
              • Overview
              • MultiStreamTimeSeriesHeader
              • TimeSeriesHeader
          • flow_limiter_calculator_pb2
            • Overview
            • FlowLimiterCalculatorOptions
          • gate_calculator_pb2
            • Overview
            • GateCalculatorOptions
          • split_vector_calculator_pb2
            • Overview
            • Range
            • SplitVectorCalculatorOptions
        • image
          • Overview
          • image_transformation_calculator_pb2
            • Overview
            • ImageTransformationCalculatorOptions
            • ImageTransformationCalculatorOptions.Color
            • mediapipe_dot_gpu_dot_scale__mode__pb2
              • Overview
              • ScaleMode
          • rotation_mode_pb2
            • Overview
            • RotationMode
          • warp_affine_calculator_pb2
            • Overview
            • WarpAffineCalculatorOptions
            • mediapipe_dot_gpu_dot_gpu__origin__pb2
              • Overview
              • GpuOrigin
        • tensor
          • Overview
          • image_to_tensor_calculator_pb2
            • Overview
            • ImageToTensorCalculatorOptions
            • ImageToTensorCalculatorOptions.FloatRange
            • ImageToTensorCalculatorOptions.IntRange
            • ImageToTensorCalculatorOptions.UIntRange
          • inference_calculator_pb2
            • Overview
            • InferenceCalculatorOptions
            • InferenceCalculatorOptions.Delegate
            • InferenceCalculatorOptions.Delegate.Gpu
            • InferenceCalculatorOptions.Delegate.Nnapi
            • InferenceCalculatorOptions.Delegate.TfLite
            • InferenceCalculatorOptions.Delegate.Xnnpack
          • tensors_to_classification_calculator_pb2
            • Overview
            • TensorsToClassificationCalculatorOptions
            • TensorsToClassificationCalculatorOptions.LabelItemsEntry
            • TensorsToClassificationCalculatorOptions.LabelMap
            • TensorsToClassificationCalculatorOptions.LabelMap.Entry
            • mediapipe_dot_util_dot_label__map__pb2
              • Overview
              • LabelMapItem
          • tensors_to_detections_calculator_pb2
            • Overview
            • TensorsToDetectionsCalculatorOptions
            • TensorsToDetectionsCalculatorOptions.BoxBoundariesIndices
            • TensorsToDetectionsCalculatorOptions.TensorMapping
          • tensors_to_floats_calculator_pb2
            • Overview
            • TensorsToFloatsCalculatorOptions
          • tensors_to_landmarks_calculator_pb2
            • Overview
            • TensorsToLandmarksCalculatorOptions
          • tensors_to_segmentation_calculator_pb2
            • Overview
            • TensorsToSegmentationCalculatorOptions
        • tflite
          • Overview
          • ssd_anchors_calculator_pb2
            • Overview
            • SsdAnchorsCalculatorOptions
            • mediapipe_dot_framework_dot_formats_dot_object__detection_dot_anchor__pb2
              • Overview
              • Anchor
        • util
          • Overview
          • association_calculator_pb2
            • Overview
            • AssociationCalculatorOptions
          • collection_has_min_size_calculator_pb2
            • Overview
            • CollectionHasMinSizeCalculatorOptions
          • detection_label_id_to_text_calculator_pb2
            • Overview
            • DetectionLabelIdToTextCalculatorOptions
            • DetectionLabelIdToTextCalculatorOptions.LabelItemsEntry
          • detections_to_rects_calculator_pb2
            • Overview
            • DetectionsToRectsCalculatorOptions
          • landmark_projection_calculator_pb2
            • Overview
            • LandmarkProjectionCalculatorOptions
          • landmarks_refinement_calculator_pb2
            • Overview
            • LandmarksRefinementCalculatorOptions
            • LandmarksRefinementCalculatorOptions.Refinement
            • LandmarksRefinementCalculatorOptions.ZRefinement
            • LandmarksRefinementCalculatorOptions.ZRefinementAssignAverage
            • LandmarksRefinementCalculatorOptions.ZRefinementCopy
            • LandmarksRefinementCalculatorOptions.ZRefinementNone
          • landmarks_smoothing_calculator_pb2
            • Overview
            • LandmarksSmoothingCalculatorOptions
            • LandmarksSmoothingCalculatorOptions.NoFilter
            • LandmarksSmoothingCalculatorOptions.OneEuroFilter
            • LandmarksSmoothingCalculatorOptions.VelocityFilter
          • local_file_contents_calculator_pb2
            • Overview
            • LocalFileContentsCalculatorOptions
          • logic_calculator_pb2
            • Overview
            • LogicCalculatorOptions
          • non_max_suppression_calculator_pb2
            • Overview
            • NonMaxSuppressionCalculatorOptions
          • rect_transformation_calculator_pb2
            • Overview
            • RectTransformationCalculatorOptions
          • thresholding_calculator_pb2
            • Overview
            • ThresholdingCalculatorOptions
          • visibility_smoothing_calculator_pb2
            • Overview
            • VisibilitySmoothingCalculatorOptions
            • VisibilitySmoothingCalculatorOptions.LowPassFilter
            • VisibilitySmoothingCalculatorOptions.NoFilter
      • mp.packet_creator
        • Overview
        • create_bool
        • create_bool_vector
        • create_double
        • create_float
        • create_float_array
        • create_float_vector
        • create_image
        • create_image_frame
        • create_image_vector
        • create_int
        • create_int16
        • create_int32
        • create_int64
        • create_int8
        • create_int_array
        • create_int_vector
        • create_matrix
        • create_packet_vector
        • create_proto
        • create_proto_vector
        • create_string
        • create_string_to_packet_map
        • create_string_vector
        • create_uint16
        • create_uint32
        • create_uint64
        • create_uint8
        • image
          • Overview
        • image_frame
          • Overview
        • packet
          • Overview
      • mp.packet_getter
        • Overview
        • get_bool
        • get_bool_list
        • get_bytes
        • get_float
        • get_float_list
        • get_image
        • get_image_frame
        • get_image_list
        • get_int
        • get_int_list
        • get_matrix
        • get_packet_list
        • get_proto
        • get_proto_list
        • get_str
        • get_str_list
        • get_str_to_packet_dict
        • get_uint
      • mp.resource_util
        • Overview
        • set_resource_dir
      • mp.tasks
        • Overview
        • BaseOptions
        • BaseOptions.Delegate
        • audio
          • Overview
          • AudioClassifier
          • AudioClassifierOptions
          • AudioClassifierResult
          • AudioEmbedder
          • AudioEmbedderOptions
          • AudioEmbedderResult
          • RunningMode
        • components
          • Overview
          • containers
            • Overview
            • AudioData
            • AudioDataFormat
            • BoundingBox
            • Category
            • Classifications
            • Detection
            • Embedding
            • Landmark
            • LandmarksDetectionResult
            • NormalizedLandmark
            • NormalizedRect
            • Rect
            • keypoint
              • Overview
              • NormalizedKeypoint
              • location_data_pb2
                • Overview
                • LocationData
                • LocationData.BinaryMask
                • LocationData.BoundingBox
                • LocationData.RelativeBoundingBox
                • LocationData.RelativeKeypoint
                • mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
                  • Overview
                  • Rasterization
                  • Rasterization.Interval
          • processors
            • Overview
            • ClassifierOptions
          • utils
            • Overview
            • cosine_similarity
              • Overview
              • cosine_similarity
              • embedding_result
                • Overview
                • embeddings_pb2
                  • Overview
                  • Embedding
                  • EmbeddingResult
                  • FloatEmbedding
                  • QuantizedEmbedding
        • text
          • Overview
          • LanguageDetector
          • LanguageDetectorOptions
          • LanguageDetectorResult
          • LanguageDetectorResult.Detection
          • TextClassifier
          • TextClassifierOptions
          • TextEmbedder
          • TextEmbedderOptions
          • core
            • Overview
            • base_text_task_api
              • Overview
              • task_runner
                • Overview
                • TaskRunner
        • vision
          • Overview
          • FaceAligner
          • FaceAlignerOptions
          • FaceDetector
          • FaceDetectorOptions
          • FaceDetectorResult
          • FaceLandmarker
          • FaceLandmarkerOptions
          • FaceLandmarkerResult
          • FaceLandmarksConnections
          • FaceLandmarksConnections.Connection
          • FaceStylizer
          • FaceStylizerOptions
          • GestureRecognizer
          • GestureRecognizerOptions
          • GestureRecognizerResult
          • HandLandmarker
          • HandLandmarkerOptions
          • HandLandmarkerResult
          • HandLandmarksConnections
          • HandLandmarksConnections.Connection
          • ImageClassifier
          • ImageClassifierOptions
          • ImageEmbedder
          • ImageEmbedderOptions
          • ImageSegmenter
          • ImageSegmenterOptions
          • InteractiveSegmenter
          • InteractiveSegmenterOptions
          • InteractiveSegmenterRegionOfInterest
          • InteractiveSegmenterRegionOfInterest.Format
          • ObjectDetector
          • ObjectDetectorOptions
          • PoseLandmarker
          • PoseLandmarkerOptions
          • PoseLandmarkerResult
          • PoseLandmarksConnections
          • PoseLandmarksConnections.Connection
          • RunningMode
    • Java
      • com.google.mediapipe.framework.image
        • Overview
        • BitmapExtractor
        • BitmapImageBuilder
        • ByteBufferExtractor
        • ByteBufferImageBuilder
        • MPImage
          • Overview
          • MPImageFormat
          • StorageType
        • MPImageConsumer
        • MPImageProducer
        • MPImageProperties
        • MediaImageBuilder
        • MediaImageExtractor
      • com.google.mediapipe.tasks.audio.audioclassifier
        • Overview
        • AudioClassifier
          • Overview
          • AudioClassifier.AudioClassifierOptions
            • Overview
            • Builder
        • AudioClassifierResult
      • com.google.mediapipe.tasks.audio.audioembedder
        • Overview
        • AudioEmbedder
          • Overview
          • AudioEmbedder.AudioEmbedderOptions
            • Overview
            • Builder
        • AudioEmbedderResult
      • com.google.mediapipe.tasks.audio.core
        • Overview
        • BaseAudioTaskApi
        • RunningMode
      • com.google.mediapipe.tasks.components.containers
        • Overview
        • AudioData
          • Overview
          • AudioData.AudioDataFormat
            • Overview
            • Builder
        • Category
        • ClassificationResult
        • Classifications
        • Connection
        • Detection
        • Embedding
        • EmbeddingResult
        • Landmark
        • NormalizedKeypoint
        • NormalizedLandmark
      • com.google.mediapipe.tasks.components.processors
        • Overview
        • ClassifierOptions
          • Overview
          • Builder
      • com.google.mediapipe.tasks.components.utils
        • Overview
        • CosineSimilarity
      • com.google.mediapipe.tasks.core
        • Overview
        • BaseOptions
          • Overview
          • Builder
          • BaseOptions.DelegateOptions
            • Overview
            • BaseOptions.DelegateOptions.CpuOptions
              • Overview
              • Builder
            • BaseOptions.DelegateOptions.GpuOptions
              • Overview
              • Builder
        • Delegate
        • ErrorListener
        • OutputHandler
          • Overview
          • OutputPacketConverter
          • PureResultListener
          • ResultListener
        • TaskInfo
          • Overview
          • Builder
        • TaskOptions
        • TaskResult
        • TaskRunner
      • com.google.mediapipe.tasks.core.logging
        • Overview
        • TasksStatsDummyLogger
        • TasksStatsLogger
          • Overview
          • StatsSnapshot
      • com.google.mediapipe.tasks.text.languagedetector
        • Overview
        • LanguageDetector
          • Overview
          • LanguageDetector.LanguageDetectorOptions
            • Overview
            • Builder
        • LanguageDetectorResult
        • LanguagePrediction
      • com.google.mediapipe.tasks.text.textclassifier
        • Overview
        • TextClassifier
          • Overview
          • TextClassifier.TextClassifierOptions
            • Overview
            • Builder
        • TextClassifierResult
      • com.google.mediapipe.tasks.text.textembedder
        • Overview
        • TextEmbedder
          • Overview
          • TextEmbedder.TextEmbedderOptions
            • Overview
            • Builder
        • TextEmbedderResult
      • com.google.mediapipe.tasks.vision.core
        • Overview
        • BaseVisionTaskApi
        • ImageProcessingOptions
          • Overview
          • Builder
        • RunningMode
      • com.google.mediapipe.tasks.vision.facedetector
        • Overview
        • FaceDetector
          • Overview
          • FaceDetector.FaceDetectorOptions
            • Overview
            • Builder
        • FaceDetectorResult
      • com.google.mediapipe.tasks.vision.facelandmarker
        • Overview
        • FaceLandmarker
          • Overview
          • FaceLandmarker.FaceLandmarkerOptions
            • Overview
            • Builder
        • FaceLandmarkerResult
      • com.google.mediapipe.tasks.vision.facestylizer
        • Overview
        • FaceStylizer
          • Overview
          • FaceStylizer.FaceStylizerOptions
            • Overview
            • Builder
        • FaceStylizerResult
      • com.google.mediapipe.tasks.vision.gesturerecognizer
        • Overview
        • GestureRecognizer
          • Overview
          • GestureRecognizer.GestureRecognizerOptions
            • Overview
            • Builder
        • GestureRecognizerResult
      • com.google.mediapipe.tasks.vision.handlandmarker
        • Overview
        • HandLandmark
          • Overview
          • HandLandmarkType
        • HandLandmarker
          • Overview
          • HandLandmarker.HandLandmarkerOptions
            • Overview
            • Builder
        • HandLandmarkerResult
      • com.google.mediapipe.tasks.vision.imageclassifier
        • Overview
        • ImageClassifier
          • Overview
          • ImageClassifier.ImageClassifierOptions
            • Overview
            • Builder
        • ImageClassifierResult
      • com.google.mediapipe.tasks.vision.imageembedder
        • Overview
        • ImageEmbedder
          • Overview
          • ImageEmbedder.ImageEmbedderOptions
            • Overview
            • Builder
        • ImageEmbedderResult
      • com.google.mediapipe.tasks.vision.imagegenerator
        • Overview
        • ImageGenerator
          • Overview
          • ImageGenerator.ConditionOptions
            • Overview
            • Builder
            • ConditionType
            • ImageGenerator.ConditionOptions.DepthConditionOptions
              • Overview
              • Builder
            • ImageGenerator.ConditionOptions.EdgeConditionOptions
              • Overview
              • Builder
            • ImageGenerator.ConditionOptions.FaceConditionOptions
              • Overview
              • Builder
          • ImageGenerator.ImageGeneratorOptions
            • Overview
            • Builder
        • ImageGeneratorResult
      • com.google.mediapipe.tasks.vision.imagesegmenter
        • Overview
        • ImageSegmenter
          • Overview
          • ImageSegmenter.ImageSegmenterOptions
            • Overview
            • Builder
          • ImageSegmenter.SegmentationOptions
            • Overview
            • Builder
        • ImageSegmenterResult
      • com.google.mediapipe.tasks.vision.interactivesegmenter
        • Overview
        • InteractiveSegmenter
          • Overview
          • InteractiveSegmenter.InteractiveSegmenterOptions
            • Overview
            • Builder
          • RegionOfInterest
      • com.google.mediapipe.tasks.vision.objectdetector
        • Overview
        • ObjectDetectionResult
        • ObjectDetector
          • Overview
          • ObjectDetector.ObjectDetectorOptions
            • Overview
            • Builder
        • ObjectDetectorResult
      • com.google.mediapipe.tasks.vision.poselandmarker
        • Overview
        • PoseLandmarker
          • Overview
          • PoseLandmarker.PoseLandmarkerOptions
            • Overview
            • Builder
        • PoseLandmarkerResult
    • JavaScript
      • @mediapipe/tasks-audio
        • Overview
        • AudioClassifier
        • AudioClassifierOptions
        • AudioClassifierResult
        • AudioEmbedder
        • AudioEmbedderOptions
        • AudioEmbedderResult
        • Category
        • Classifications
        • Embedding
        • FilesetResolver
      • @mediapipe/tasks-text
        • Overview
        • Category
        • Classifications
        • Embedding
        • FilesetResolver
        • LanguageDetector
        • LanguageDetectorOptions
        • LanguageDetectorPrediction
        • LanguageDetectorResult
        • TextClassifier
        • TextClassifierOptions
        • TextClassifierResult
        • TextEmbedder
        • TextEmbedderOptions
        • TextEmbedderResult
      • @mediapipe/tasks-vision
        • Overview
        • BoundingBox
        • Category
        • Classifications
        • Detection
        • DetectionResult
        • DrawingOptions
        • DrawingUtils
        • Embedding
        • FaceDetector
        • FaceDetectorOptions
        • FaceLandmarker
        • FaceLandmarkerOptions
        • FaceLandmarkerResult
        • FaceStylizer
        • FaceStylizerOptions
        • FilesetResolver
        • GestureRecognizer
        • GestureRecognizerOptions
        • GestureRecognizerResult
        • HandLandmarker
        • HandLandmarkerOptions
        • HandLandmarkerResult
        • ImageClassifier
        • ImageClassifierOptions
        • ImageClassifierResult
        • ImageEmbedder
        • ImageEmbedderOptions
        • ImageEmbedderResult
        • ImageSegmenter
        • ImageSegmenterOptions
        • ImageSegmenterResult
        • InteractiveSegmenter
        • InteractiveSegmenterOptions
        • InteractiveSegmenterResult
        • Landmark
        • LandmarkData
        • MPImage
        • MPMask
        • NormalizedLandmark
        • ObjectDetector
        • ObjectDetectorOptions
        • PoseLandmarker
        • PoseLandmarkerOptions
        • PoseLandmarkerResult
        • RegionOfInterest
    • Swift
      • MediaPipeTasksText
      • Classes
        • Overview
        • BaseOptions
        • ClassificationResult
        • Classifications
        • Embedding
        • EmbeddingResult
        • ResultCategory
        • TaskOptions
        • TaskResult
        • TextClassifier
        • TextClassifierOptions
        • TextClassifierResult
        • TextEmbedder
        • TextEmbedderOptions
        • TextEmbedderResult
      • Enumerations
        • Overview
        • TasksErrorCode
      • MediaPipeTasksVision
      • Classes
        • Overview
        • BaseOptions
        • ClassificationResult
        • Classifications
        • ClassifierOptions
        • Connection
        • Detection
        • FaceDetector
        • FaceDetectorOptions
        • FaceDetectorResult
        • FaceLandmarker
        • FaceLandmarkerOptions
        • FaceLandmarkerResult
        • GestureRecognizer
        • GestureRecognizerOptions
        • GestureRecognizerResult
        • HandLandmarker
        • HandLandmarkerOptions
        • HandLandmarkerResult
        • ImageClassifier
        • ImageClassifierOptions
        • ImageClassifierResult
        • Landmark
        • MPImage
        • NormalizedKeypoint
        • NormalizedLandmark
        • ObjectDetector
        • ObjectDetectorOptions
        • ObjectDetectorResult
        • ResultCategory
        • TaskOptions
        • TaskResult
        • TransformMatrix
      • Constants
        • Overview
        • image
        • pixelBuffer
        • sampleBuffer
      • Enumerations
        • Overview
        • HandLandmark
        • RunningMode
        • TasksErrorCode
      • Protocols
        • Overview
        • FaceDetectorLiveStreamDelegate
        • FaceLandmarkerLiveStreamDelegate
        • GestureRecognizerLiveStreamDelegate
        • HandLandmarkerLiveStreamDelegate
        • ImageClassifierLiveStreamDelegate
        • ObjectDetectorLiveStreamDelegate
      • Type Definitions
        • Overview
        • MPImageSourceType
      • Functions
        • Overview
        • MPPRunningModeDisplayName(_:)
    • ObjectiveC
      • MediaPipeTasksText
      • Classes
        • Overview
        • MPPBaseOptions
        • MPPCategory
        • MPPClassificationResult
        • MPPClassifications
        • MPPEmbedding
        • MPPEmbeddingResult
        • MPPTaskOptions
        • MPPTaskResult
        • MPPTextClassifier
        • MPPTextClassifierOptions
        • MPPTextClassifierResult
        • MPPTextEmbedder
        • MPPTextEmbedderOptions
        • MPPTextEmbedderResult
      • Enumerations
        • Overview
        • MPPTasksErrorCode
      • MediaPipeTasksVision
      • Classes
        • Overview
        • MPPBaseOptions
        • MPPCategory
        • MPPClassificationResult
        • MPPClassifications
        • MPPClassifierOptions
        • MPPConnection
        • MPPDetection
        • MPPFaceDetector
        • MPPFaceDetectorOptions
        • MPPFaceDetectorResult
        • MPPFaceLandmarker
        • MPPFaceLandmarkerOptions
        • MPPFaceLandmarkerResult
        • MPPGestureRecognizer
        • MPPGestureRecognizerOptions
        • MPPGestureRecognizerResult
        • MPPHandLandmarker
        • MPPHandLandmarkerOptions
        • MPPHandLandmarkerResult
        • MPPImage
        • MPPImageClassifier
        • MPPImageClassifierOptions
        • MPPImageClassifierResult
        • MPPLandmark
        • MPPNormalizedKeypoint
        • MPPNormalizedLandmark
        • MPPObjectDetector
        • MPPObjectDetectorOptions
        • MPPObjectDetectorResult
        • MPPTaskOptions
        • MPPTaskResult
        • MPPTransformMatrix
      • Constants
        • Overview
        • MPPImageSourceTypeImage
        • MPPImageSourceTypePixelBuffer
        • MPPImageSourceTypeSampleBuffer
      • Enumerations
        • Overview
        • MPPHandLandmark
        • MPPRunningMode
        • MPPTasksErrorCode
      • Protocols
        • Overview
        • MPPFaceDetectorLiveStreamDelegate
        • MPPFaceLandmarkerLiveStreamDelegate
        • MPPGestureRecognizerLiveStreamDelegate
        • MPPHandLandmarkerLiveStreamDelegate
        • MPPImageClassifierLiveStreamDelegate
        • MPPObjectDetectorLiveStreamDelegate
      • Type Definitions
        • Overview
        • MPPImageSourceType
      • Functions
        • Overview
        • MPPRunningModeDisplayName
  • Model Maker
    • mediapipe_model_maker
      • Overview
    • mediapipe_model_maker.face_stylizer
      • Overview
      • Dataset
      • FaceStylizer
      • FaceStylizerOptions
      • HParams
      • ModelOptions
      • SupportedModels
      • constants
        • Overview
        • file_util
          • Overview
          • DownloadedFiles
      • dataset
        • Overview
        • classification_dataset
          • Overview
          • ClassificationDataset
        • image_module
          • Overview
          • Image
      • face_stylizer
        • Overview
        • image_preprocessing
          • Overview
          • Preprocessor
          • preprocess_for_eval
          • preprocess_for_train
        • loss_functions
          • Overview
          • FocalLoss
          • ImagePerceptualQualityLoss
          • PerceptualLoss
          • PerceptualLossWeight
          • SparseFocalLoss
          • VGGPerceptualLoss
      • face_stylizer_options
        • Overview
      • hyperparameters
        • Overview
        • hp
          • Overview
          • BaseHParams
      • model_options
        • Overview
      • model_spec
        • Overview
        • ModelSpec
        • blaze_face_stylizer_256_spec
    • mediapipe_model_maker.gesture_recognizer
      • Overview
      • Dataset
      • GestureRecognizer
      • GestureRecognizerOptions
      • HParams
      • HandDataPreprocessingParams
      • ModelOptions
    • mediapipe_model_maker.image_classifier
      • Overview
      • Dataset
      • HParams
      • ImageClassifier
      • ImageClassifierOptions
      • ModelOptions
      • ModelSpec
      • SupportedModels
    • mediapipe_model_maker.image_utils
      • Overview
      • load_image
    • mediapipe_model_maker.model_util
      • Overview
      • LiteRunner
      • WarmUp
      • convert_to_tflite
      • convert_to_tflite_from_file
      • get_default_callbacks
      • get_lite_runner
      • get_steps_per_epoch
      • load_keras_model
      • load_tflite_model_buffer
      • save_tflite
      • dataset
        • Overview
        • Dataset
    • mediapipe_model_maker.object_detector
      • Overview
      • Dataset
      • HParams
      • ModelOptions
      • ModelSpec
      • ObjectDetector
      • ObjectDetectorOptions
      • QATHParams
      • SupportedModels
    • mediapipe_model_maker.quantization
      • Overview
      • QuantizationConfig
    • mediapipe_model_maker.text_classifier
      • Overview
      • AverageWordEmbeddingHParams
      • AverageWordEmbeddingModelOptions
      • BertHParams
      • BertModelOptions
      • BertOptimizer
      • CSVParams
      • Dataset
      • SupportedModels
      • TextClassifier
      • TextClassifierOptions
Attention: This MediaPipe Solutions Preview is an early release. Learn more.
  • Home
  • MediaPipe
  • Solutions
  • API

mp.tasks.BaseOptions.Delegate

Stay organized with collections Save and categorize content based on your preferences.

View source on GitHub

An enumeration.

Class Variables

CPU <Delegate.CPU: 0>
GPU <Delegate.GPU: 1>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-06-09 UTC.

  • Product Info

    • Terms of Service
    • Privacy Policy
  • Community

    • GitHub Repo
    • MediaPipe Blog
    • @TensorFlow on Twitter
    • YouTube
  • Help

    • Issue Tracker
    • Stack Overflow
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • Sign up for the Google for Developers newsletter Subscribe
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Français
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어