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.48k stars 5.15k forks source link

mjpeg stream #1996

Closed crouse12 closed 3 years ago

crouse12 commented 3 years ago

Dear All, Is it possible use mediapipe for mjpeg stream in javascript?

sgowroji commented 3 years ago

Hi @crouse12, Could you please share your use case with complete details. Thanks!

crouse12 commented 3 years ago

I want to use for esp32cam. In addition, some ipcams also output mjpeg stream. The ESP32-CAM is a very small camera module with the ESP32-S chip that costs approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients.

https://www.instructables.com/ESP-32-Camera-Streaming-Video-Over-WiFi-Getting-St/

crouse12 commented 3 years ago

Hi @crouse12, Could you please share your use case with complete details. Thanks!

Dear sgowroji , I create a python program for esp32cam and mediapipe. Test video: https://www.youtube.com/watch?v=GGXMqVeCC7g Python code: https://github.com/crouse12/python_for_mediapipe_and_esp32cam If you know how to use mediapipe for mjpeg stream in javascript, please tell me.

sgowroji commented 3 years ago

Hi @crouse12, We have not tried doing with it. But you can share your observation and let us know if you face any difficulty or errors while doing it. Thanks!

crouse12 commented 3 years ago

I find there are many mediapipe examples for camera. However, I need some mediapipe examples for an image. If you can give me some examples like holistic, Hands etc. I can use them for mjpeg stream.

sgowroji commented 3 years ago

Hi @crouse12, You can try the examples from here

mhays-google commented 3 years ago

All of the examples use the SourcePicker control, which, at the very least, allows you to upload images and videos. We will be adding example images and videos soon.

On Wed, Jul 28, 2021 at 10:38 PM GowrojiSunil @.***> wrote:

Hi @crouse12 https://github.com/crouse12, You can try the examples from here https://google.github.io/mediapipe/getting_started/javascript

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/google/mediapipe/issues/1996#issuecomment-888818176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKQBFIFAIHHC5U4F7ARKQTT2DSNBANCNFSM44JN24MQ .

google-ml-butler[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] commented 3 years ago

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] commented 3 years ago

Are you satisfied with the resolution of your issue? Yes No