Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

added python code for tracking hand on webcamera videofeed #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joakimeriksson
Copy link

@joakimeriksson joakimeriksson commented Jul 1, 2020

I did a quick web-camera hand-tracking example for the hand tracking code. This makes it possible to test the tracker without Jupyter notebooks.

I also did a small fix to get the correct number of values of the return statement when no hands are found.

Copy link
Owner

@wolterlw wolterlw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest you follow the general best practices and put keypoint and box drawing code into separate functions and then capture the webcam and call the main while loop inside
if __name__ == ‘__main__’:
Otherwise thanks for the contribution.

@joakimeriksson
Copy link
Author

I cleaned up the code a bit now. I will also very likely use your contribution in a project where I would like to have some of the MediaPipe trackers and you did a great job of making that easy to do - thanks!

@joakimeriksson joakimeriksson requested a review from wolterlw July 7, 2020 08:34
@joakimeriksson
Copy link
Author

Ping!

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

Successfully merging this pull request may close these issues.

2 participants