google-ai-edge / mediapipe

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

How to pass in self selected images on Android and temporarily turn off pose recognition during use #4350

Open jungyin opened 1 year ago

jungyin commented 1 year ago

I have successfully run the Mediapipe example in the Android project. How do I need to close the framework used in the recognition process now? Also, if I need to select images from the system album, how can I transfer the selected bitmap to the mediapipe?

kuaashish commented 1 year ago

Hello @jungyin, Query raised to pass the self selected image that can be done here in https://github.com/googlesamples/mediapipe/blob/main/examples/pose_landmarker/android/app/src/main/java/com/google/mediapipe/examples/poselandmarker/fragment/GalleryFragment.kt#L272 in Android. However, for Another query, we would to like to understand the mean by the " How do I need to close the framework used in the recognition process now?" to share the possible solution on the use case you are looking.

jungyin commented 1 year ago

Hello @jungyin, Query raised to pass the self selected image that can be done here in https://github.com/googlesamples/mediapipe/blob/main/examples/pose_landmarker/android/app/src/main/java/com/google/mediapipe/examples/poselandmarker/fragment/GalleryFragment.kt#L272 in Android. However, for Another query, we would to like to understand the mean by the " How do I need to close the framework used in the recognition process now?" to share the possible solution on the use case you are looking.

I am currently using the official website example directly, but it will automatically come with a layer of lines and points for viewing the recognition effect. I do not want these lines and points to appear in my preview now