Cross-platform, customizable ML solutions for live and streaming media.
Go to file
Jiuqiang Tang 2ce3a9719e Remove the problematic packet release calls in OutputHandler::run.
OutputHandler::run is installed as a MultiStreamCallback into the TaskRunner and it's invoked in the Graph::CallbackToJava() jni method.

In CallbackToJava(), the packets are removed in RemovePacket() calls after the multi stream callback is invoked. The current logic lets the MultiStreamCallback release the packets first and leaves null pointers to RemovePacket() to remove, which may cause the app crash. The fix is to remove the packet release calls in the MultiStreamCallback and always leave the packet release work to RemovePacket().

PiperOrigin-RevId: 487558809
2022-11-10 09:27:35 -08:00
.github Project import generated by Copybara. 2022-03-22 17:48:17 -07:00
docs Make the python documentation clear to resolve https://github.com/google/mediapipe/issues/3805. 2022-11-04 08:46:36 -07:00
mediapipe Remove the problematic packet release calls in OutputHandler::run. 2022-11-10 09:27:35 -08:00
third_party Metadata Writer: Add Bert metadata writer in Text Classifier. 2022-11-09 14:53:12 -08:00
.bazelrc Project import generated by Copybara. 2022-05-05 19:57:20 +00:00
.bazelversion Project import generated by Copybara. 2022-06-28 12:11:05 +00:00
.dockerignore Project import generated by Copybara. 2019-06-16 16:06:57 -07:00
.gitignore Set up the Open Source build for MediaPipe Tasks Web 2022-11-04 10:59:32 -07:00
build_android_examples.sh Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
build_desktop_examples.sh Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
build_ios_examples.sh Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
BUILD.bazel Set up the Open Source build for MediaPipe Tasks Web 2022-11-04 10:59:32 -07:00
CONTRIBUTING.md Project import generated by Copybara. 2021-12-13 15:56:02 -08:00
Dockerfile Install node and npm on Docker as a prerequisite to open sourcing the Web files 2022-11-02 16:45:52 -07:00
LICENSE Project import generated by Copybara. 2019-06-16 16:06:57 -07:00
MANIFEST.in Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
package.json NPM package definitions for MediaPipe Tasks 2022-11-08 15:46:05 -08:00
README.md Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
requirements.txt Enable using tasks metadata components in MediaPipe PyPI packages. 2022-11-04 09:49:13 -07:00
setup_android_sdk_and_ndk.sh Project import generated by Copybara. 2022-06-28 12:11:05 +00:00
setup_opencv.sh Project import generated by Copybara. 2021-09-01 18:15:31 -07:00
setup.py Enable using tasks metadata components in MediaPipe PyPI packages. 2022-11-04 09:49:13 -07:00
tsconfig.json Set up the Open Source build for MediaPipe Tasks Web 2022-11-04 10:59:32 -07:00
WORKSPACE Add pre-compiled WASM files to NPM packages 2022-11-09 10:28:09 -08:00
yarn.lock NPM package definitions for MediaPipe Tasks 2022-11-08 15:46:05 -08:00

layout title nav_order
default Home 1

MediaPipe


Live ML anywhere

MediaPipe offers cross-platform, customizable ML solutions for live and streaming media.

accelerated.png cross_platform.png
End-to-End acceleration: Built-in fast ML inference and processing accelerated even on common hardware Build once, deploy anywhere: Unified solution works across Android, iOS, desktop/cloud, web and IoT
ready_to_use.png open_source.png
Ready-to-use solutions: Cutting-edge ML solutions demonstrating full power of the framework Free and open source: Framework and solutions both under Apache 2.0, fully extensible and customizable

ML solutions in MediaPipe

Face Detection Face Mesh Iris Hands Pose Holistic
face_detection face_mesh iris hand pose hair_segmentation
Hair Segmentation Object Detection Box Tracking Instant Motion Tracking Objectron KNIFT
hair_segmentation object_detection box_tracking instant_motion_tracking objectron knift
Android iOS C++ Python JS Coral
Face Detection
Face Mesh
Iris
Hands
Pose
Holistic
Selfie Segmentation
Hair Segmentation
Object Detection
Box Tracking
Instant Motion Tracking
Objectron
KNIFT
AutoFlip
MediaSequence
YouTube 8M

See also MediaPipe Models and Model Cards for ML models released in MediaPipe.

Getting started

To start using MediaPipe solutions with only a few lines code, see example code and demos in MediaPipe in Python and MediaPipe in JavaScript.

To use MediaPipe in C++, Android and iOS, which allow further customization of the solutions as well as building your own, learn how to install MediaPipe and start building example applications in C++, Android and iOS.

The source code is hosted in the MediaPipe Github repository, and you can run code search using Google Open Source Code Search.

Publications

Videos

Events

Community

Alpha disclaimer

MediaPipe is currently in alpha at v0.7. We may be still making breaking API changes and expect to get to stable APIs by v1.0.

Contributing

We welcome contributions. Please follow these guidelines.

We use GitHub issues for tracking requests and bugs. Please post questions to the MediaPipe Stack Overflow with a mediapipe tag.