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

Run MediaPipe on python without any preview #3961

Closed stonecropa closed 1 year ago

stonecropa commented 1 year ago
捕获

I am using MediaPipe to run a holistic estimation network followed by an action classifier. I want to turn off the rendering of the output video and only want to use the output of bones. Like this picture, but I use video.

Are there any examples available that explain how to use mediapipe without any preview rendering ? How to display only skeletons in videos generated by mediapipe

System information (Please provide as much relevant information as possible)

  • Have I written custom code (as opposed to using a stock example script provided in MediaPipe):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04, Android 11, iOS 14.4): Windows10
  • MediaPipe Tasks SDK version:
  • Task name (e.g. Object detection, Gesture recognition etc.):
  • Programming Language and version ( e.g. C++, Python, Java): Python
kuaashish commented 1 year ago

Hi @stonecropa, Please allow us sometime to share any possible solution to the support you are looking.

stonecropa commented 1 year ago

Hi @stonecropa, Please allow us sometime to share any possible solution to the support you are looking.

OK

stonecropa commented 1 year ago

Hi @stonecropa, Please allow us sometime to share any possible solution to the support you are looking. image image

I found this, but it's a image I want a video. I hope you can answer this question Thank you.

kuaashish commented 1 year ago

Hi @stonecropa, This is beyond mediapipe scope. The API only outputs pose landmarks, and users can process the landmarks with other tools such as matplotlib.pyplot. For video, We guess need a video rendering engine/game engine. We are not familiar with video rendering. However, We found that some users doing it with unity: Ref Thank you!

kuaashish commented 1 year ago

@stonecropa, Please go though the above comment and feel free to close if this is no longer issue from your end. Thank you!

google-ml-butler[bot] commented 1 year 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 1 year ago

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

google-ml-butler[bot] commented 1 year ago

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