native library
Low-level generated bindings for the MediaPipe Tasks C API.
Most applications should use mp_audio, mp_text, or mp_vision. This
library is public so those independently published packages can share one
bundled native runtime.
The generated MpStatus FFI enum is hidden because package:mp_core.dart
already exports the Dart-side MpStatus used throughout this SDK.
Classes
- ImageEmbedderOptions
- The options for configuring a MediaPipe image embedder task.
- MpAudioClassifierInternal
- MpAudioClassifierOptions
- The options for configuring a MediaPipe AudioClassifier task.
- MpAudioClassifierResult
-
The C representation of a list of audio classification results.
The caller must call
MpAudioClassifierCloseResultto free the memory. - MpAudioData
- MediaPipe audio data.
- MpBaseOptions
- Base options for MediaPipe C Tasks.
- MpCategories
- A list of categories.
- MpCategory
- Defines a single classification result.
- MpClassificationResult
- Defines classification results of a model.
- MpClassifications
- Defines classification results for a given classifier head.
- MpClassifierOptions
- Classifier options for MediaPipe C classification Tasks.
- MpDetection
- Detection for a single bounding box.
- MpDetectionResult
- Detection results of a model.
- MpEmbedderOptions
- Embedder options for MediaPipe C embedding extraction tasks.
- MpEmbedding
- Embedding result for a given embedder head.
- MpEmbeddingResult
- Defines embedding results of a model.
- MpFaceDetectorInternal
- MpFaceDetectorOptions
- The options for configuring a MediaPipe face detector task.
- MpFaceLandmarkerInternal
- MpFaceLandmarkerOptions
- The options for configuring a MediaPipe face landmarker task.
- MpFaceLandmarkerResult
- The hand landmarker result from HandLandmarker, where each vector element represents a single hand detected in the image.
- MpFlatbufferParserInternal
- MpGestureRecognizerInternal
- MpGestureRecognizerOptions
- The options for configuring a MediaPipe gesture recognizer task.
- MpGestureRecognizerResult
- The gesture recognition result from GestureRecognizer, where each vector element represents a single hand detected in the image.
- MpHandLandmarkerInternal
- MpHandLandmarkerOptions
- The options for configuring a MediaPipe hand landmarker task.
- MpHandLandmarkerResult
- The hand landmarker result from HandLandmarker, where each vector element represents a single hand detected in the image.
- MpHolisticLandmarkerInternal
- MpHolisticLandmarkerOptions
- The options for configuring a MediaPipe holistic landmarker task.
- MpHolisticLandmarkerResult
- The holistic landmarks detection result from HolisticLandmarker.
- MpImageClassifierInternal
- MpImageClassifierOptions
- The options for configuring a MediaPipe image classifier task.
- MpImageEmbedderInternal
- MpImageInternal
- MpImageProcessingOptions
- Options for image processing. If both region_of_interest and rotation are specified, the crop around the region-of-interest is extracted first, then the specified rotation is applied to the crop.
- MpImageSegmenterInternal
- MpImageSegmenterOptions
- The options for configuring a mediapipe image segmenter task.
- MpImageSegmenterResult
- MpInteractiveSegmenterLegacyInternal
- MpInteractiveSegmenterLegacyOptions
- The options for configuring a mediapipe interactive segmenter task.
- MpLandmark
- Landmark represents a point in 3D space with x, y, z coordinates. The landmark coordinates are in meters. z represents the landmark depth, and the smaller the value the closer the world landmark is to the camera.
- MpLandmarks
- A list of MpLandmarks.
- MpLanguageDetectorInternal
- MpLanguageDetectorOptions
- The options for configuring a MediaPipe language detector task.
- MpLanguageDetectorPrediction
- A language code and its probability.
- MpLanguageDetectorResult
- Task output.
- MpMatrix
- Data are stored in column-major order by default.
- MpNormalizedKeypoint
- A keypoint, defined by the coordinates (x, y), normalized by the image dimensions.
- MpNormalizedLandmark
-
A normalized version of above MpLandmark struct. All coordinates should be
within
0, 1. - MpNormalizedLandmarks
- A list of MpNormalizedLandmarks.
- MpObjectDetectorInternal
- MpObjectDetectorOptions
- The options for configuring a MediaPipe object detector task.
- MpPoseLandmarkerInternal
- MpPoseLandmarkerOptions
- The options for configuring a MediaPipe pose landmarker task.
- MpPoseLandmarkerResult
- The hand landmarker result from PoseLandmarker, where each vector element represents a single hand detected in the image.
- MpRect
- Defines a rectangle, used e.g. as part of detection results or as input region-of-interest.
- MpRectF
-
The coordinates are normalized wrt the image dimensions, i.e. generally in
0,1but they may exceed these bounds if describing a region overlapping the image. The origin is on the top-left corner of the image. - MpRegionOfInterest
- The Region-Of-Interest (ROI) to interact with.
- MpSegmentationOptions
- Options for configuring runtime behavior of ImageSegmenter.
- MpStringList
- Represents a list of strings.
- MpTextClassifierInternal
- MpTextClassifierOptions
- The options for configuring a MediaPipe text classifier task.
- MpTextEmbedderFormatContext
- Encapsulates formatting instructions for models that require it (like Gecko).
- MpTextEmbedderInternal
- MpTextEmbedderOptions
- The options for configuring a MediaPipe text embedder task.
- NativeScope
- Owns temporary native allocations for one task creation or invocation.
- NativeTaskIsolate
- A request/response worker that keeps one native task on one isolate.
Enums
- MpAudioRunningMode
- Supported processing modes.
- MpDelegate
- The delegate to run MediaPipe.
- MpHostEnvironment
- The environment that MediaPipe runs in.
- MpHostSystem
- Host OS on which MediaPipe tasks are running.
- MpImageFormat
- An enum describing supported raw image formats. Corresponds to mediapipe::ImageFormat::Format.
- MpRegionOfInterestFormat
- The format used to specify the region-of-interest.
- MpRunningMode
- Supported processing modes.
- MpTextEmbedderEmbeddingType
- The embedding type, used to format input text.
- MpTextEmbedderRole
- The role of the text in the context of the embedding task.
Functions
-
categoriesFromNative(
MpCategories value) → List< Category> - Converts one native category list before its owner is released.
-
categoryFromNative(
MpCategory value) → Category - Converts a native category.
-
classificationResultFromNative(
MpClassificationResult value) → ClassificationResult - Converts a native classification result before its owner is released.
-
detectionResultFromNative(
MpDetectionResult value, {int? timestampMs}) → DetectionResult - Converts a native detection result before its owner is released.
-
embeddingResultFromNative(
MpEmbeddingResult value) → EmbeddingResult - Converts a native embedding result before its owner is released.
-
imageFromNative(
MpImagePtr image, {String? task}) → MpImage - Copies a native image into an immutable Dart image.
-
landmarksFromNative(
MpLandmarks value) → List< Landmark> - Converts one native world-landmark list before its owner is released.
-
matrixFromNative(
MpMatrix value) → MpMatrix - Converts a native column-major matrix into the public row-major format.
-
MpAudioClassifierClassify(
MpAudioClassifierPtr classifier, Pointer< MpAudioData> audio_data, Pointer<MpAudioClassifierResult> result_out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpAudioClassifierClassifyAsync(
MpAudioClassifierPtr classifier, Pointer< MpAudioData> audio_data, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpAudioClassifierClose(
MpAudioClassifierPtr classifier, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpAudioClassifierCloseResult(
Pointer< MpAudioClassifierResult> result) → void - Frees the memory allocated inside a MpAudioClassifierResult result. Does not free the result pointer itself.
-
MpAudioClassifierCreate(
Pointer< MpAudioClassifierOptions> options, Pointer<MpAudioClassifierPtr> classifier_out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpErrorFree(
Pointer< Char> error_message) → void - Frees an error message.
-
MpFaceDetectorClose(
MpFaceDetectorPtr detector, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpFaceDetectorCloseResult(
Pointer< MpFaceDetectorResult> result) → void - Frees the memory allocated inside a MpFaceDetectorResult result. Does not free the result pointer itself.
-
MpFaceDetectorCreate(
Pointer< MpFaceDetectorOptions> options, Pointer<MpFaceDetectorPtr> detector, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceDetectorDetectAsync(
MpFaceDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceDetectorDetectForVideo(
MpFaceDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpFaceDetectorResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceDetectorDetectImage(
MpFaceDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpFaceDetectorResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceLandmarkerClose(
MpFaceLandmarkerPtr landmarker, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpFaceLandmarkerCloseResult(
Pointer< MpFaceLandmarkerResult> result) → void - Frees the memory allocated inside a MpFaceLandmarkerResult result. Does not free the result pointer itself.
-
MpFaceLandmarkerCreate(
Pointer< MpFaceLandmarkerOptions> options, Pointer<MpFaceLandmarkerPtr> landmarker, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceLandmarkerDetectAsync(
MpFaceLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceLandmarkerDetectForVideo(
MpFaceLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpFaceLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFaceLandmarkerDetectImage(
MpFaceLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpFaceLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFlatbufferFreeString(
Pointer< Char> str) → void - Frees a string allocated by MpFlatbufferGenerateText.
-
MpFlatbufferGenerateText(
MpFlatbufferParser parser, Pointer< Uint8> buffer, int buffer_size, Pointer<Pointer< json_out, Pointer<Char> >Pointer< error_msg) → MpStatusChar> > -
MpFlatbufferParserCreate(
bool enable_strict_json, Pointer< MpFlatbufferParser> parser_out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpFlatbufferParserDelete(
MpFlatbufferParser parser) → void - Deletes a Flatbuffer Parser.
-
MpFlatbufferParserGetError(
MpFlatbufferParser parser) → Pointer< Char> - Gets the error message from the parser. The returned string is owned by the Parser and should not be freed.
-
MpFlatbufferParserParse(
MpFlatbufferParser parser, Pointer< Char> source, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpGestureRecognizerClose(
MpGestureRecognizerPtr recognizer, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpGestureRecognizerCloseResult(
Pointer< MpGestureRecognizerResult> result) → void - Frees the memory allocated inside a MpGestureRecognizerResult result. Does not free the result pointer itself.
-
MpGestureRecognizerCreate(
Pointer< MpGestureRecognizerOptions> options, Pointer<MpGestureRecognizerPtr> recognizer, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpGestureRecognizerRecognizeAsync(
MpGestureRecognizerPtr recognizer, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpGestureRecognizerRecognizeForVideo(
MpGestureRecognizerPtr recognizer, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<MpGestureRecognizerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpGestureRecognizerRecognizeImage(
MpGestureRecognizerPtr recognizer, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, Pointer<MpGestureRecognizerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHandLandmarkerClose(
MpHandLandmarkerPtr landmarker, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpHandLandmarkerCloseResult(
Pointer< MpHandLandmarkerResult> result) → void - Frees the memory allocated inside a MpHandLandmarkerResult result. Does not free the result pointer itself.
-
MpHandLandmarkerCreate(
Pointer< MpHandLandmarkerOptions> options, Pointer<MpHandLandmarkerPtr> landmarker, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHandLandmarkerDetectAsync(
MpHandLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHandLandmarkerDetectForVideo(
MpHandLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpHandLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHandLandmarkerDetectImage(
MpHandLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpHandLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHolisticLandmarkerClose(
MpHolisticLandmarkerPtr landmarker, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpHolisticLandmarkerCloseResult(
Pointer< MpHolisticLandmarkerResult> result) → void - Frees the memory allocated inside a MpHolisticLandmarkerResult result. Does not free the result pointer itself.
-
MpHolisticLandmarkerCreate(
Pointer< MpHolisticLandmarkerOptions> options, Pointer<MpHolisticLandmarkerPtr> landmarker, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHolisticLandmarkerDetectAsync(
MpHolisticLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHolisticLandmarkerDetectForVideo(
MpHolisticLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpHolisticLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpHolisticLandmarkerDetectImage(
MpHolisticLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpHolisticLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageClassifierClassifyAsync(
MpImageClassifierPtr classifier, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageClassifierClassifyForVideo(
MpImageClassifierPtr classifier, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<MpImageClassifierResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageClassifierClassifyImage(
MpImageClassifierPtr classifier, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, Pointer<MpImageClassifierResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageClassifierClose(
MpImageClassifierPtr classifier, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpImageClassifierCloseResult(
Pointer< MpImageClassifierResult> result) → void - Frees the memory allocated inside a MpImageClassifierResult result. Does not free the result pointer itself.
-
MpImageClassifierCreate(
Pointer< MpImageClassifierOptions> options, Pointer<MpImageClassifierPtr> classifier, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageCreateFromFile(
Pointer< Char> file_name, Pointer<MpImagePtr> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageCreateFromFloatData(
MpImageFormat format, int width, int height, Pointer< Float> pixel_data, int pixel_data_size, Pointer<MpImagePtr> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageCreateFromImageFrame(
MpImagePtr image, Pointer< MpImagePtr> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageCreateFromUint16Data(
MpImageFormat format, int width, int height, Pointer< Uint16> pixel_data, int pixel_data_size, Pointer<MpImagePtr> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageCreateFromUint8Data(
MpImageFormat format, int width, int height, Pointer< Uint8> pixel_data, int pixel_data_size, Pointer<MpImagePtr> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageDataFloat32(
MpImagePtr image, Pointer< Pointer< out, Pointer<Float> >Pointer< error_msg) → MpStatusChar> > -
MpImageDataUint16(
MpImagePtr image, Pointer< Pointer< out, Pointer<Uint16> >Pointer< error_msg) → MpStatusChar> > -
MpImageDataUint8(
MpImagePtr image, Pointer< Pointer< out, Pointer<Uint8> >Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderClose(
MpImageEmbedderPtr embedder, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderCloseResult(
Pointer< ImageEmbedderResult> result) → void - Frees the memory allocated inside a ImageEmbedderResult result. Does not free the result pointer itself.
-
MpImageEmbedderCosineSimilarity(
Pointer< MpEmbedding> u, Pointer<MpEmbedding> v, Pointer<Double> similarity, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderCreate(
Pointer< ImageEmbedderOptions> options, Pointer<MpImageEmbedderPtr> embedder, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderEmbedAsync(
MpImageEmbedderPtr embedder, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderEmbedForVideo(
MpImageEmbedderPtr embedder, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, int timestamp_ms, Pointer<ImageEmbedderResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageEmbedderEmbedImage(
MpImageEmbedderPtr embedder, MpImagePtr image, Pointer< MpImageProcessingOptions> image_processing_options, Pointer<ImageEmbedderResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageFree(
MpImagePtr image) → void - Frees an MpImage.
-
MpImageGetByteDepth(
MpImagePtr image) → int - Returns the byte depth of the image format. (e.g. 1 for SRGB, 2 for SRGB48).
-
MpImageGetChannels(
MpImagePtr image) → int - Returns the number of channels in the image.
-
MpImageGetFormat(
MpImagePtr image) → MpImageFormat -
MpImageGetHeight(
MpImagePtr image) → int - Returns the height of the image.
-
MpImageGetValueFloat32(
MpImagePtr image, Pointer< Int> pos, int pos_size, Pointer<Float> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageGetValueUint16(
MpImagePtr image, Pointer< Int> pos, int pos_size, Pointer<Uint16> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageGetValueUint8(
MpImagePtr image, Pointer< Int> pos, int pos_size, Pointer<Uint8> out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageGetWidth(
MpImagePtr image) → int - Returns the width of the image.
-
MpImageGetWidthStep(
MpImagePtr image) → int - Returns the width step of the image.
-
MpImageIsAligned(
MpImagePtr image, int alignment_boundary) → bool - Returns true if each row of the data is aligned to alignment_boundary.
-
MpImageIsContiguous(
MpImagePtr image) → bool - Returns true if the pixel data is stored contiguously.
-
MpImageIsEmpty(
MpImagePtr image) → bool - Returns true if the image is empty.
-
MpImageSegmenterClose(
MpImageSegmenterPtr segmenter, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpImageSegmenterCloseResult(
Pointer< MpImageSegmenterResult> result) → void - Frees the memory allocated inside a MpImageSegmenterResult result. Does not free the result pointer itself.
-
MpImageSegmenterCreate(
Pointer< MpImageSegmenterOptions> options, Pointer<MpImageSegmenterPtr> segmenter, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageSegmenterGetLabels(
MpImageSegmenterPtr segmenter, Pointer< MpStringList> label_list, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageSegmenterSegmentAsync(
MpImageSegmenterPtr segmenter, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageSegmenterSegmentForVideo(
MpImageSegmenterPtr segmenter, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpImageSegmenterResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageSegmenterSegmentImage(
MpImageSegmenterPtr segmenter, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpImageSegmenterResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpImageUsesGpu(
MpImagePtr image) → bool - Returns true if the image is backed by GPU memory.
-
MpInteractiveSegmenterLegacyClose(
MpInteractiveSegmenterLegacyPtr segmenter, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpInteractiveSegmenterLegacyCloseResult(
Pointer< MpImageSegmenterResult> result) → void - Frees the memory allocated inside a MpImageSegmenterResult result. Does not free the result pointer itself.
-
MpInteractiveSegmenterLegacyCreate(
Pointer< MpInteractiveSegmenterLegacyOptions> options, Pointer<MpInteractiveSegmenterLegacyPtr> segmenter, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpInteractiveSegmenterLegacySegmentImage(
MpInteractiveSegmenterLegacyPtr segmenter, MpImagePtr image, Pointer< MpRegionOfInterest> roi, Pointer<MpImageProcessingOptions> image_processing_options, Pointer<MpImageSegmenterResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpLanguageDetectorClose(
MpLanguageDetectorPtr detector, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpLanguageDetectorCloseResult(
Pointer< MpLanguageDetectorResult> result) → void - Frees the memory allocated inside a MpLanguageDetectorResult result. Does not free the result pointer itself.
-
MpLanguageDetectorCreate(
Pointer< MpLanguageDetectorOptions> options, Pointer<MpLanguageDetectorPtr> detector, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpLanguageDetectorDetect(
MpLanguageDetectorPtr detector, Pointer< Char> utf8_str, Pointer<MpLanguageDetectorResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpObjectDetectorClose(
MpObjectDetectorPtr detector, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpObjectDetectorCloseResult(
Pointer< MpFaceDetectorResult> result) → void - Frees the memory allocated inside a MpObjectDetectorResult result. Does not free the result pointer itself.
-
MpObjectDetectorCreate(
Pointer< MpObjectDetectorOptions> options, Pointer<MpObjectDetectorPtr> detector_out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpObjectDetectorDetectAsync(
MpObjectDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpObjectDetectorDetectForVideo(
MpObjectDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpFaceDetectorResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpObjectDetectorDetectImage(
MpObjectDetectorPtr detector, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpFaceDetectorResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpPoseLandmarkerClose(
MpPoseLandmarkerPtr landmarker, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpPoseLandmarkerCloseResult(
Pointer< MpPoseLandmarkerResult> result) → void - Frees the memory allocated inside a MpPoseLandmarkerResult result. Does not free the result pointer itself.
-
MpPoseLandmarkerCreate(
Pointer< MpPoseLandmarkerOptions> options, Pointer<MpPoseLandmarkerPtr> landmarker_out, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpPoseLandmarkerDetectAsync(
MpPoseLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpPoseLandmarkerDetectForVideo(
MpPoseLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, int timestamp_ms, Pointer<MpPoseLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpPoseLandmarkerDetectImage(
MpPoseLandmarkerPtr landmarker, MpImagePtr image, Pointer< MpImageProcessingOptions> options, Pointer<MpPoseLandmarkerResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpStringListFree(
Pointer< MpStringList> string_list) → void - Frees an MpStringList.
-
MpTextClassifierClassify(
MpTextClassifierPtr classifier, Pointer< Char> utf8_str, Pointer<MpImageClassifierResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpTextClassifierClose(
MpTextClassifierPtr classifier, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpTextClassifierCloseResult(
Pointer< MpImageClassifierResult> result) → void - Frees the memory allocated inside a MpTextClassifierResult result. Does not free the result pointer itself.
-
MpTextClassifierCreate(
Pointer< MpTextClassifierOptions> options, Pointer<MpTextClassifierPtr> classifier, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpTextEmbedderClose(
MpTextEmbedderPtr embedder, Pointer< Pointer< error_msg) → MpStatusChar> > -
MpTextEmbedderCloseResult(
Pointer< ImageEmbedderResult> result) → void - Frees the memory allocated inside a MpTextEmbedderResult result. Does not free the result pointer itself.
-
MpTextEmbedderCosSimilarity(
Pointer< MpEmbedding> u, Pointer<MpEmbedding> v, Pointer<Double> similarity, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpTextEmbedderCreate(
Pointer< MpTextEmbedderOptions> options, Pointer<MpTextEmbedderPtr> embedder, Pointer<Pointer< error_msg) → MpStatusChar> > -
MpTextEmbedderEmbed(
MpTextEmbedderPtr embedder, Pointer< Char> utf8_str, Pointer<MpTextEmbedderFormatContext> format_context, Pointer<ImageEmbedderResult> result, Pointer<Pointer< error_msg) → MpStatusChar> > -
nativeString(
Pointer< Char> value) → String? - Converts a nullable native UTF-8 pointer without taking ownership.
-
nativeTaskFailure(
Object error) → Object - Rewrites an unresolvable native symbol into an actionable failure.
-
normalizedLandmarksFromNative(
MpNormalizedLandmarks value) → List< NormalizedLandmark> - Converts one native normalized-landmark list before its owner is released.
-
resolveNativeModelAsset(
ModelAsset asset) → Future< ModelAsset> - Resolves URI-backed model assets before crossing the native ABI.
Typedefs
- ImageEmbedderResult = MpEmbeddingResult
-
MpAudioClassifierPtr
= Pointer<
MpAudioClassifierInternal> -
MpFaceDetectorPtr
= Pointer<
MpFaceDetectorInternal> - MpFaceDetectorResult = MpDetectionResult
-
MpFaceLandmarkerPtr
= Pointer<
MpFaceLandmarkerInternal> -
MpFlatbufferParser
= Pointer<
MpFlatbufferParserInternal> - Represents a Flatbuffer Parser.
-
MpGestureRecognizerPtr
= Pointer<
MpGestureRecognizerInternal> -
MpHandLandmarkerPtr
= Pointer<
MpHandLandmarkerInternal> -
MpHolisticLandmarkerPtr
= Pointer<
MpHolisticLandmarkerInternal> -
MpImageClassifierPtr
= Pointer<
MpImageClassifierInternal> - MpImageClassifierResult = MpClassificationResult
-
MpImageEmbedderPtr
= Pointer<
MpImageEmbedderInternal> -
MpImagePtr
= Pointer<
MpImageInternal> -
MpImageSegmenterPtr
= Pointer<
MpImageSegmenterInternal> -
MpInteractiveSegmenterLegacyPtr
= Pointer<
MpInteractiveSegmenterLegacyInternal> -
MpLanguageDetectorPtr
= Pointer<
MpLanguageDetectorInternal> -
MpObjectDetectorPtr
= Pointer<
MpObjectDetectorInternal> - MpObjectDetectorResult = MpDetectionResult
-
MpPoseLandmarkerPtr
= Pointer<
MpPoseLandmarkerInternal> -
MpTextClassifierPtr
= Pointer<
MpTextClassifierInternal> - MpTextClassifierResult = MpClassificationResult
-
MpTextEmbedderPtr
= Pointer<
MpTextEmbedderInternal> - MpTextEmbedderResult = MpEmbeddingResult
-
NativeTaskWorkerFactory
= FutureOr<
NativeTaskWorkerHandler> Function(Object? initialMessage) - Creates a command handler inside a dedicated native-task isolate.
-
NativeTaskWorkerHandler
= FutureOr<
Object?> Function(Object? command) - Handles commands inside a dedicated native-task isolate.