Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have any face detection examples for desktop? #7

Closed
RealBBakGosu opened this issue Jul 15, 2019 · 4 comments
Closed

Do you have any face detection examples for desktop? #7

RealBBakGosu opened this issue Jul 15, 2019 · 4 comments

Comments

@RealBBakGosu
Copy link

RealBBakGosu commented Jul 15, 2019

Thanks

@mgyong
Copy link

mgyong commented Jul 16, 2019

@RealBBakGosu All the examples are listed at https://mediapipe.readthedocs.io/en/latest/examples.html. We only have face detection example for Android and do not have a version for desktop. However, you should be able to port the face detection tf-lite example to desktop by basing it on the desktop tflite object detection example

  • Swap out the desktop object detection pbtxt with the face detection pbtxt
  • The face detection Android example uses the mobile camera while the desktop will be loading the input video through a file. As such, you will have to make changes to the first few input calculators to the face detection Android example

@RealBBakGosu
Copy link
Author

RealBBakGosu commented Jul 16, 2019

Hello if you want to test face detection example on yout desktop, pls download this code and use as a calculator

face_detection_tflite.zip

bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tflite --calculator_graph_config_file=<face_detection_tflite_path> --input_side_packets=input_video_path=<input_video_path>,output_video_path=<output_video_path>

For example,
bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tflite --calculator_graph_config_file=mediapipe/graphs/face_detection/face_detection_tflite.pbtxt --input_side_packets=input_video_path=mediapipe/examples/desktop/object_detection/test.mp4,output_video_path=mediapipe/examples/desktop/object_detection/output.mp4

thx to @mgyong

@jiuqiant
Copy link
Contributor

jiuqiant commented Jul 16, 2019

@RealBBakGosu, thanks for composing a face detection graph for desktop use case! Just to clarify, what you have in face_detection_tflite.zip is a graph, and calculators are those nodes in the graph ;)

We definitely will provide more desktop demos in the future releases.

@mgyong
Copy link

mgyong commented Aug 3, 2019

@RealBBakGosu Thanks for using MediaPipe. My team would love to get feedback from you about your use of MediaPipe
It would be great if you could answer the below questions

  1. What is your use case for MediaPipe?
  2. Any feedback about how easy or difficult it is to use MediaPipe?
    Thanks
    Ming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants