mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

How to detect palms python

Open Liampour opened this issue 2 years ago • 5 comments

Hello guys, Is there a way to detect palms in python without detecting all hand landmarks ?

Liampour avatar Aug 07 '22 07:08 Liampour

Hi @Liampour, Yes, You could take the palm_detection_tflite model (https://github.com/google/mediapipe/blob/master/mediapipe/modules/palm_detection/palm_detection_full.tflite) and use the standard tflite api to run it without mediapipe. Thank you!

kuaashish avatar Aug 08 '22 06:08 kuaashish

Hi @kuaashish Thank you for your quick reply! I am a bit confused, could you give me more information about how to use this file?

Liampour avatar Aug 08 '22 12:08 Liampour

Hi @Liampour, You can refer to this colab example of iris tflite model implementation to use the palm detection tflite model. Thank you!

kuaashish avatar Aug 09 '22 05:08 kuaashish

Hi @kuaashish Thank you for your help. I have also found this example useful https://github.com/aashish2000/hand_tracking?fbclid=IwAR2qPR5WQVVA2s_1dENWW8p_j3Siqclq4LlSfEgFYJNHy-9UHzz2c6Ld8Go

Is it possible to run palm_detection_tflite model with coral usb accelerator?

Liampour avatar Aug 09 '22 18:08 Liampour

Hi @Liampour, Yes, Coral Usb accelerator is capable of running the tflite model with Python as example mentioned in official_documentation. You can follow the above example to build and run the palm_detection_tflite model on the Edge devices. Thank you!

kuaashish avatar Aug 10 '22 06:08 kuaashish

Hi @kuaashish, Could you please confirm your query has been addressed as per the above comment or need further assistance on the issue. Thank you!

kuaashish avatar Aug 11 '22 09:08 kuaashish

Hi @kuaashish, you have answered completely my questions. Thanks a lot for your time and your helpful responses

Liampour avatar Aug 11 '22 11:08 Liampour

Hi @Liampour, Thanks for the confirmation, Can we move this issue to the close status. Thank you!

kuaashish avatar Aug 11 '22 12:08 kuaashish

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

google-ml-butler[bot] avatar Aug 11 '22 13:08 google-ml-butler[bot]