Closed Borzborz closed 3 years ago
If you modify the source code, you probably need to rerun the setup workflow to generate the package?
In fact, instead of touching hands.py, you can define HAND_TIP_CONNECTIONS in your python code and pass it to draw_landmarks().
Oh, nice! thank you.
Hello, I wanted to create a new hand connection frozenset in hands.py like so:
I wanted to do this so I can connect the tips of the fingers along with the wrist landmark when I use draw_landmarks. However, when I save the change to hands.py and try to call draw_landmarks in my code like so :
mp_drawing.draw_landmarks(frame, hand_landmarks, mp_hands.HAND_TIP_CONNECTIONS)
my code get an error sayingI'm not sure what to do here. Any suggestions on how I can create a new connection would be much appreciated.