mediapipe
mediapipe copied to clipboard
Update for returning gesture index in gesture_recognizer.py
The gesture recognizer is returning a default value of -1. changed the _GESTURE_DEFAULT_INDEX to gesture.index to return the gesture class index (id:int). Now the respective class index is returned when the category is predicted by the model.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.