Skip to main content

mediapipe_vision 0.5.0 copy "mediapipe_vision: ^0.5.0" to clipboard
mediapipe_vision: ^0.5.0 copied to clipboard

Google's MediaPipe vision tasks for Flutter: face, hand, pose and holistic landmarks, gestures, object detection, classification, embeddings and segmentation.

0.5.0 #

  • Upgrade every mediapipe package to 0.5.0 together, so this package now requires mediapipe_core ^0.5.0, which pins Google's Windows arm64 libraries. MediaPipe stays at 1.2.3.
  • Adds Windows arm64: the 10 vision tasks supported on Windows x64 run there on the CPU, with the same capabilities and tasks build-setting checks (Interactive Segmenter remains unavailable on Windows).
  • CI runs the vision tasks, bundled models and the object detection sample on GitHub's windows-11-arm runners.
  • Every vision model now downloads from Google's LiteRT community on Hugging Face (huggingface.co/litert-community), each pinned to a fixed revision, instead of Google's storage.googleapis.com/mediapipe-models bucket. The files are byte-identical, so their SHA-256 pins are unchanged. Hugging Face names two of them differently, so the Object Detector and Image Classifier models download as efficientdet_lite0_float32.tflite and efficientnet_lite0_float32.tflite. The model store and bundles find files by SHA-256, so apps need no change.

0.4.1 #

  • Upgrade every mediapipe package to 0.4.1 together, so this package now requires mediapipe_core ^0.4.1. MediaPipe stays at 1.2.3.
  • Face Landmarker, Image Classifier, Image Segmenter and Object Detector offer the GPU on Linux arm64, through OpenGL ES, as they do on Linux x64; EGL and a GPU driver are required. Their capability queries now list it. The other vision tasks run on the CPU only there and give Linux x64's reasons.
  • CI runs the four tasks' GPU suites, and the gallery's Face Landmarker GPU demo, on GitHub's ubuntu-24.04-arm runners with Mesa's software renderer renamed past Google's software-GPU check, and they match Google's own GPU output from its aarch64 wheel. A Raspberry Pi 5's V3D GPU has not been tested.

0.4.0 #

  • Upgrade every mediapipe package to 0.4.0 together, so this package now requires mediapipe_core ^0.4.0, which pins Google's Linux arm64 libraries. MediaPipe stays at 1.2.3.
  • Adds Linux arm64 (aarch64): all 11 vision tasks run there on the CPU, with the same checks as Linux x64. A GPU request there fails with a clear reason. The tasks build setting accepts the same tasks on Linux arm64 as on Linux x64.
  • Linux arm64 needs glibc 2.27 or later (Raspberry Pi OS Bullseye, Ubuntu 18.04 and later) and, even on the CPU, EGL and OpenGL ES: sudo apt-get install libegl1 libgles2, which Raspberry Pi OS Lite lacks. Google's library uses Arm's LSE atomic and RCPC load instructions, so it needs a Raspberry Pi 5 (Cortex-A76, ARMv8.2) or newer: on a Pi 4 or older (Cortex-A72 or earlier) it stops with an illegal instruction.
  • CI runs every vision task, bundled models and the object detection sample on GitHub's ubuntu-24.04-arm runners.
  • The package is now licensed under Apache 2.0, like the rest of the repository, in place of BSD-3-Clause. Releases up to 0.3.0 keep BSD-3-Clause.

0.3.0 #

  • Upgrade every mediapipe package to 0.3.0 together. MediaPipe 1.2.3 changes the layout of the native option structs, so this package now requires mediapipe_core ^0.3.0.
  • Runs Google's MediaPipe 1.2.3 instead of 1.2.2, with new SHA-256 pins for its native libraries.
  • On Linux, Hand Landmarker, Gesture Recognizer and Pose Landmarker now run on the CPU only. Google's 1.2.3 Linux library runs part of their graphs on LiteRT, whose GPU plugin (libLiteRtGpuAccelerator.so) it does not ship, so their GPU graphs fail to open; 1.2.2 ran them on the GPU. Asking for the GPU there fails with a clear reason, as it already does for Face Detector.
  • On Android, Hand Landmarker, Gesture Recognizer and Pose Landmarker now run on the CPU only as well: Google's 1.2.3 Android library needs the same missing GPU plugin, so their GPU graphs failed to open on a Pixel 8a, where 1.2.2 ran all three on the GPU. Asking for the GPU there fails with a clear reason, and the gallery opens them on the CPU.
  • Accepts Flutter 3.44 and newer, down from 3.47. The package accepts the dependency versions Flutter 3.44 resolves, from hooks 2.0.0, code_assets 1.1.0 and, for development, ffigen 21.0.0. iOS and macOS builds with Xcode 27 need Flutter 3.47 or later.
  • CI tests the package on Flutter 3.50.0, the latest stable release, instead of 3.47.9.
  • The object detection sample app builds on Flutter 3.44.0, 3.47.9 and 3.50.0: its Android project uses the Android Gradle plugin 9.3.3, Gradle 9.5.0 and Kotlin 2.4.20, and it takes its Material widgets from material_ui 1.2.0 or later, since Flutter 3.50 deprecates the SDK's copy.

0.2.1 #

  • The README's video and live stream samples are complete functions. The live stream sample gives a frame that arrives in the same millisecond as the one before it the next millisecond, since a repeated timestamp throws.
  • The README's GPU sample takes the delegate from the capability query and falls back to the CPU when the GPU it was offered is refused, as on Linux with only a software renderer.
  • The README has a browser sample that draws face landmarks over a playing <video> with BrowserOverlay and VisionImage.fromBrowserFrame.
  • Two new guides: video and live stream samples for each of the ten camera tasks, and options and extra outputs: capability queries, regions of interest, RGB input, transformation matrices, masks, quantized embeddings and the tuning options.
  • The README's link to the object detection sample app points to samples/apps/object_detection, where the app moved.
  • In WebKit browsers, a task whose create fails is created once more in a fresh worker with its own copy of the model bytes. On macOS WebKit, Google's web runtime sometimes fails to create a sound task, for example with "Unable to initialize TagMaps for node"; a model that is really bad fails both times. Each retry logs a MEDIAPIPE_WEBKIT_CREATE_RETRY warning in the console.

0.2.0 #

  • Google's MediaPipe 1.2.2 native release (build of November 2, 2026) replaces 1.2.0 on Android, iOS, macOS, Linux and Windows, and @mediapipe/tasks-* 1.2.2 replaces 1.2.0-rc.20261018 in browsers.
  • The regenerated bindings carry Google's renumbered delegates.
  • Gives Google's library the app's ID and version on Android and iOS, as core's fillBaseOptions does. Every vision task accepts them, but with 1.2.2 only Interactive Segmenter's usage uploads carry them; the other vision tasks upload both fields empty.
  • The README and the support matrix say that GPU on iPhone was tested on an iPhone 15 Pro (iOS 27) with 1.2.2, for the nine tasks with an iOS GPU path.

0.1.4 #

  • The README's links to mediapipe_core's reference sections point to the core guide, where those sections moved.
  • Error messages and the README no longer refer to removed notes.

0.1.3 #

  • The README installs the package with flutter pub add, drops the steps for depending on a clone by path, states the Flutter 3.47 minimum and recommends the latest stable release.
  • With mediapipe_core 0.1.3, downloads of models and native libraries wait out short network failures.

0.1.2 #

Release 0.1.2.

0.1.1 #

Adds Google's NOTICE at the package root.

0.1.0 #

The first release.

  • Face Detector, Face Landmarker, Hand Landmarker, Gesture Recognizer, Pose Landmarker, Holistic Landmarker, Object Detector, Image Classifier, Image Embedder, Image Segmenter and Interactive Segmenter on Android, iOS, macOS, Linux, Windows and the web, through Google's official runtimes. Windows has no Interactive Segmenter: Google's Windows runtime takes about 25 seconds a stroke.
  • On 32-bit Android (armeabi-v7a) every task runs on the CPU; the GPU is not offered there yet.
  • Image Segmenter offers only the CPU on Android: Google's Android task aborts the app when it reads a GPU mask on PowerVR and Adreno 630 GPUs, in its C library and its Java SDK alike.
  • Every task is one class with the same API on every platform, and mediapipe_vision.dart is the only app library. Tasks use Google's verbs (detect, recognize, classify, embed and segment, and their ForVideo forms), and results use core's shared types (Detection, BoundingBox, MediaPipeCategory, NormalizedLandmark and Landmark, Matrix, Classifications, Embedding, ConfidenceMask). Every result extends VisionResult, with the input's size and the frame's timestamp.
  • Image, video and live stream running modes on every platform, the web included. In live stream mode every camera-capable task has detectAsync (recognizeAsync, classifyAsync, embedAsync, segmentAsync), a results stream and droppedFrames. Google's flow limiter (one frame in flight, the newest one waiting) runs in front of Google's VIDEO graph, so a frame that runs gets the result Google's LIVE_STREAM gives it, and a dropped frame is never copied to the runtime. VisionImage.deferred converts a live stream frame only when the task starts it.
  • VisionImage.fromBrowserFrame and BrowserOverlay for browser camera frames; both exist on every platform.
  • The Interactive Segmenter takes Google's Stroke and BrushMode, with Google's rule that a stroke of any mode has at least one point, and returns a ConfidenceMask. Image Classifier and Image Embedder take a region of interest.
  • queryXxxCapabilities() reports the supported delegates and why any other is unavailable. The same input checks run on every platform, with the browser's timestamp limit (9007199254740 ms) everywhere, and errors name the task.
  • VisionModels.byName names every pinned model for hooks.user_defines.mediapipe_vision.models, which dart run mediapipe_core:bundle_models bundles into the app. model: uses the bundled copy and downloads at run time only when ModelStore.allowDownloads is true; app-supplied paths and bytes work too.
  • The tasks build setting leaves the face tasks' own macOS libraries out of apps that do not use them.
  • On macOS every task runs on the CPU for now: Google's library since 1.1.1 gives different Metal results from its 1.1.0 wheel, so the GPU stays withdrawn until Google says whether the change is intended.
  • On macOS, a GPU task reopens its native task after converting 1 GiB of frames, since Google's macOS GPU path keeps every frame until the task closes. Tasks that reopen hold their model in memory, so the app may delete the model file after creating them.
5
likes
160
points
2.11k
downloads

Documentation

API reference

Publisher

verified publishergoogle.dev

Weekly Downloads

Google's MediaPipe vision tasks for Flutter: face, hand, pose and holistic landmarks, gestures, object detection, classification, embeddings and segmentation.

Repository (GitHub)
View/report issues
Contributing

Topics

#mediapipe #machine-learning #computer-vision #face-detection #pose-estimation

License

Apache-2.0 (license)

Dependencies

code_assets, ffi, flutter, flutter_web_plugins, hooks, mediapipe_core, meta, web

More

Packages that depend on mediapipe_vision

Packages that implement mediapipe_vision