This repository was archived by the owner on Jun 15, 2021. It is now read-only.
added python code for tracking hand on webcamera videofeed#35
Open
joakimeriksson wants to merge 2 commits intowolterlw:masterfrom
Open
added python code for tracking hand on webcamera videofeed#35joakimeriksson wants to merge 2 commits intowolterlw:masterfrom
joakimeriksson wants to merge 2 commits intowolterlw:masterfrom
Conversation
c9094e0 to
c9f3e33
Compare
wolterlw
suggested changes
Jul 1, 2020
Owner
wolterlw
left a comment
There was a problem hiding this comment.
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.
…nd and box to functions
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! |
Author
|
Ping! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.