TaskOptions

public abstract class TaskOptions
Known Direct Subclasses
AudioClassifier.AudioClassifierOptions Options for setting up and AudioClassifier
AudioEmbedder.AudioEmbedderOptions Options for setting up and AudioEmbedder
FaceDetector.FaceDetectorOptions Options for setting up a FaceDetector
FaceLandmarker.FaceLandmarkerOptions Options for setting up an FaceLandmarker
FaceStylizer.FaceStylizerOptions Options for setting up an FaceStylizer
GestureRecognizer.GestureRecognizerOptions Options for setting up an GestureRecognizer
HandLandmarker.HandLandmarkerOptions Options for setting up an HandLandmarker
HolisticLandmarker.HolisticLandmarkerOptions Options for setting up an HolisticLandmarker
ImageClassifier.ImageClassifierOptions Options for setting up and ImageClassifier
ImageEmbedder.ImageEmbedderOptions Options for setting up and ImageEmbedder
ImageGenerator.ConditionOptions Options for setting up the conditions types and the plugin models  
ImageGenerator.ConditionOptions.DepthConditionOptions Options for detecting depth image. 
ImageGenerator.ConditionOptions.FaceConditionOptions Options for drawing face landmarks image. 
ImageGenerator.ImageGeneratorOptions Options for setting up an ImageGenerator
ImageSegmenter.ImageSegmenterOptions Options for setting up an ImageSegmenter
InteractiveSegmenter.InteractiveSegmenterOptions Options for setting up an InteractiveSegmenter
LanguageDetector.LanguageDetectorOptions Options for setting up a LanguageDetector
LlmInference.LlmInferenceOptions Options for setting up an LlmInference
ObjectDetector.ObjectDetectorOptions Options for setting up an ObjectDetector
PoseLandmarker.PoseLandmarkerOptions Options for setting up an PoseLandmarker
TextClassifier.TextClassifierOptions Options for setting up a TextClassifier
TextEmbedder.TextEmbedderOptions Options for setting up a TextEmbedder

MediaPipe Tasks options base class. Any MediaPipe task-specific options class should extend TaskOptions and implement exactly one of convertTo*Proto() methods.

Public Constructors

Public Methods

Any
convertToAnyProto ()
Converts a MediaPipe Tasks task-specific options to an proto3 ERROR(/Any) message.
CalculatorOptions
convertToCalculatorOptionsProto ()
Converts a MediaPipe Tasks task-specific options to a ERROR(/CalculatorOptions) protobuf message.

Inherited Methods

Public Constructors

public TaskOptions ()

Public Methods

public Any convertToAnyProto ()

Converts a MediaPipe Tasks task-specific options to an proto3 ERROR(/Any) message.

public CalculatorOptions convertToCalculatorOptionsProto ()

Converts a MediaPipe Tasks task-specific options to a ERROR(/CalculatorOptions) protobuf message.

Create a Mobile Website
View Site in Mobile | Classic
Share by: