google /flutter-mediapipe
★ 301⑂ 30👁 37⑃ 48● 33▤ 7
+1
Daily
301
stars
30
forks
37
watchers
48
prs
33
issues
7
releases
README
MediaPipe Tasks for Flutter
Google's [MediaPipe] Tasks for Dart and Flutter on Android, iOS, macOS, Linux,
Windows and the web: detect faces and objects, track face, hand and pose
landmarks, recognize gestures, classify and embed images, text and audio,
segment images, and more. Every task runs Google's official MediaPipe
runtime for its platform, with Google's pinned models bundled at build time.
[MediaPipe]: https://developers.google.com/edge/mediapipe/solutions
Try the live gallery
Which package do I need?
| Package | Use it for | Install | Guide |
| --- | --- | --- | --- |
| mediapipe_vision | Face and object detection; face, hand, pose and holistic landmarks; gestures; image classification, embeddings and segmentation | flutter pub add mediapipe_vision | Vision |
| mediapipe_text | Text classification, embeddings (EmbeddingGemma included) and language detection on every platform; proofreading and summarization on every platform except the web, where they are not yet available | flutter pub add mediapipe_text | Text |
| mediapipe_audio | Audio classification, speech to text and text to speech, on every platform | flutter pub add mediapipe_audio | Audio |
| mediapipe_decision | Yes-or-no, choice and score questions about a text (Decision Maker), on every platform | flutter pub add mediapipe_decision | Decision |
| mediapipe_retrieval | Text, images and audio in one embedding space (Universal Embedder) and an on-device vector index over them (Semantic Retriever), on every platform | flutter pub add mediapipe_retrieval | Retrieval |
Add only the families you use: each one bundles only Google's MediaPipe
library for that family. Every family brings mediapipe_core, which holds the
shared download code, model store and browser runtime settings
(core guide), and exports its types, so
you do not add or import core yourself unless your own code imports
package:mediapipe_core/....
Quick start
The packages need Flutter 3.44 or newer; the latest stable release is
recommended. iOS and macOS builds with Xcode 27 need Flutter 3.47 or later.
Add a family from pub.dev, from your app's root:
sh
flutter pub add mediapipe_vision
This adds mediapipe_vision: ^0.3.0 to your app's pubspec.yaml. List the
models your app uses in the same pubspec, and declare the folder they are
bundled in:
yaml
flutter:
assets:
- assets/mediapipe/
hooks:
user_defines:
mediapipe_vision:
models: [face_landmarker]
Then bundle them from the app's root, and again whenever the list changes:
sh
dart run mediapipe_core:bundle_models
It downloads each listed model once, checks it against its pinned SHA-256 and
writes it into assets/mediapipe/, so the model ships inside your app:
nothing is downloaded at run time, and the app works offline from its first
launch. In CI, dart run mediapipe_core:bundle_models --check fails when the
folder does not match the list. Each family's XxxModels.byName lists the
names it accepts.
Now create a task with theTop issues
Discussions
#79Getting `mediapipe_text` Example Running0 comments · 2025-11-30#77How we can setup the MediaPipe in fluttter ?1 comments · 2025-07-24#75`LlmInferenceEngine_CreateSession` error with gemma-3N-E2B-IT-INT4.task file0 comments · 2025-06-30#74Master Channel0 comments · 2025-04-25#70How to use RAG (retrieval augmented generation) with Gemma LLM?0 comments · 2024-08-05#68Using genai in production0 comments · 2024-07-24#66L2_NORMALIZATION: Operation is not supported.0 comments · 2024-06-24#62Helpful Links for Contributing 🔗0 comments · 2024-06-06
Latest release
v0.3.0 v0.3.0 2026-11-12What's Changed feat: 0.3.0 on MediaPipe 1.2.3 and Flutter 3.44 to 3.50, EmbeddingGemma in the Text Embedder page by @hcornellier in https://github.com/google/flutter-mediapipe/pull/94 Full Changelog: https://github.com/google/flutter-mediapipe/compare/v0.2.1...v0.3.0