翻篇收录说明
翻篇网页快照

MediaPipe Samples & Demos | Google AI Edge | Google for Developers

https://developers.google.com/edge/mediapipe/demos

最近抓取:2026-12-01 16:46:54(北京时间)

最近内容变化:2026-12-01 16:46:54(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Run interactive MediaPipe Web demos in your browser, fork TypeScript projects in StackBlitz, or clone Android, iOS, Python, and Flutter starter apps from GitHub.

正文摘录

Home Products Google AI Edge MediaPipe Send feedback MediaPipe Samples & Demos Evaluate MediaPipe Tasks interactively in your browser with MediaPipe Web Demos, fork runnable TypeScript apps in StackBlitz, or clone complete Android, iOS, Web, Python, and Flutter starter projects from GitHub. You can also try the Flutter tasks in the Flutter live gallery. Launch Web Demos Flutter Gallery Samples (Android, iOS, Python) Samples (Web) Samples (Flutter) Run a sample locally Official starter apps are maintained across three repositories: google-ai-edge/mediapipe-samples for Android, iOS, and Python, google-ai-edge/mediapipe-samples-web for Web and TypeScript, and google/flutter-mediapipe for Flutter. Select your target platform to clone and run an example: WebClone mediapipe-samples-web to run the Vite + TypeScript sample suite locally, or open it directly in StackBlitz with zero local setup: git clone https://github.com/google-ai-edge/mediapipe-samples-web cd mediapipe-samples-web pnpm install pnpm dev Each task implementation lives in src/tasks/<task-name>.ts and uses the published @mediapipe/tasks-* npm packages with WebGL, WebGPU, and WebAssembly acceleration. Android (Kotlin & Java)Clone mediapipe-samples and open any task's android/ directory in Android Studio: git clone https://github.com/google-ai-edge/mediapipe-samples # Open a project folder in Android Studio, for example: # mediapipe-samples/examples/object_detector/android Each Android Studio project includes a CameraX live camera feed, a media picker for still images and video files, runtime controls for confidence thresholds and CPU/GPU delegates, and a Gradle download script that fetches the model files automatically during Gradle sync. iOS (Swift)Clone mediapipe-samples, navigate to a task's ios/ folder, and open the Xcode project (Xcode resolves Swift Package Manager dependencies automatically): git clone https://github.com/google-ai-edge/mediapipe-samples cd mediapipe-samples/examples/<task_name>/ios # for example: object_detector/ios open *.xcodeproj Each iOS sample wraps the MediaPipe Tasks Swift SDK with an AVCaptureSession camera pipeline, an overlay renderer, and interactive controls ready to deploy to an iPhone or iPad. Python & ColabOpen any task's .ipynb notebook in Google Colab or Jupyter, or clone mediapipe-samples and run the standalone OpenCV scripts in the raspberry_pi/ directories (they also run on desktop Linux and macOS with a USB webcam): git clone https://github.com/google-ai-edge/mediapipe-samples cd mediapipe-samples/examples/<task_name>/raspberry_pi # for example: object_detector/raspberry_pi sh setup.sh python3 detect.py # script name varies by task: detect.py, classify.py, recognize.py, ... Python examples include self-contained .ipynb notebooks for interactive experimentation alongside standalone OpenCV and Raspberry Pi scripts. FlutterClone flutter-mediapipe and run the object detection app, a Flutter counterpart of the Android object detection sample, on any supported platform (Android, iOS, macOS, Linux, Windows, or the web): git clone https://github.com/google/flutter-mediapipe.git cd flutter-mediapipe/samples/apps/object_detection flutter pub get dart run mediapipe_core:bundle_models flutter run -d <device> # for example: macos, linux, windows, or chrome The sample covers live camera detection, still images, and video files, with settings for the score threshold, the maximum number of results, and the CPU/GPU delegate. The repository's samples/ folder has Dart code samples for every task, and the gallery/ app in the same repository runs every supported task; see its README for build steps, or try it in your browser. Sample directory by task Jump directly to the documentation guide, hosted browser demo, or platform source directory for any of the 22 MediaPipe Tasks. Audio Task Browser demo Sample code & notebooks Audio Classifier Web demo WebAndroidiOSFlutterColab Audio Transcriber Web demo WebAndroidiOSFlutterColab Text-to-Speech Web demo WebAndroidiOSFlutterColab Decision Task Browser demo Sample code & notebooks Decision Maker Web demo WebAndroidiOSFlutterColab Retrieval Task Browser demo Sample code & notebooks Semantic Retriever Web demo WebAndroidiOSFlutterColab Universal Embedder Web demo WebAndroidiOSFlutterColab Text Task Browser demo Sample code & notebooks Language Detector Web demo WebAndroidiOSFlutterColab Text Classifier Web demo WebAndroidiOSFlutterColab Text Embedder Web demo WebAndroidiOSFlutterColab Text Proofreader Coming soon AndroidiOSFlutterColab Text Summarizer Coming soon AndroidiOSFlutterColab Vision Task Browser demo Sample code & notebooks Face Detector Web demo WebAndroidiOSFlutterColab Face Landmarker Web demo WebAndroidiOSFlutterColab Gesture Recognizer Web demo WebAndroidiOSFlutterColab Hand Landmarker Web demo WebAndroidiOSFlutterColab Holistic Landmarker Web demo WebAndroidiOSFlutterColab Image Classifier Web demo WebAndroidiOSFlutterColab Image Embedder Web demo WebAndroidiOSFlutterColab Image Segmenter Web demo WebAndroidiOSFlutterColab Interactive Segmenter Web demo WebAndroidiOSFlutterColab Object Detector Web demo WebAndroidiOSFlutterColab Pose Landmarker Web demo WebAndroidiOSFlutterColab Test custom models and inputs in Web Demos Both the embedded playgrounds in each task guide and the standalone MediaPipe Web Demos suite run locally in your browser using WebGL, WebGPU, and WebAssembly: Bring your own model bundle: In MediaPipe Web Demos, open the Model selector and choose a local .task, .tflite, or .litertlm file that matches the task's input and output tensor metadata to evaluate custom models before shipping them in a mobile or desktop build. Test real inputs: Stream live frames from a webcam or microphone, upload your own test images or audio clips, or enter custom text prompts and search queries. All inputs are processed locally on your device. Compare runtime settings: Adjust confidence thresholds, maximum results, and CPU versus GPU delegates interactively to measure on-device inference latency in milliseconds. Send feedback 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 2026-11-30 UTC.