google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.26k stars 5.13k forks source link

Is there a way to use Mediapipe python on the web? #4034

Closed Prana-S closed 1 year ago

Prana-S commented 1 year ago

I have been trying to use Mediapipe python on the web. Is there a way to do it?

rm6759 commented 1 year ago

I have the same interest, I want to avoid javascript and keep as much as possible in python. I've looked at some python http server packages but haven't decided on one.

Streamlit looks like a nice low-code option for outputting reults. https://streamlit.io/

kuaashish commented 1 year ago

Hi @Prana-S, Currently we do not have such application build and tested using the Python. However, we can see this has already been implemented here and example codebase with Django that might be helpful for use-case mentioned. Thank you!

Prana-S commented 1 year ago

Thanks for the response @kuaashish, When I follow those steps, my application still opens in a new window. Here is what I see:

image

kuaashish commented 1 year ago

Hi @Prana-S, We do not have the official web application build/ tested using the Python. Reference shared here is by the GitHub community member implemented the application with mediapipe. It will be good practice if you can follow and raise same issue in member repo.