Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use Mediapipe to extract position of landmarks and bounding boxe #9

Open
dgrnd4 opened this issue Sep 29, 2020 · 5 comments
Open

Comments

@dgrnd4
Copy link

dgrnd4 commented Sep 29, 2020

Could you please tell me how to extract those position, using mediapipe?
Many thanks

@dgrnd4 dgrnd4 changed the title How use Mediapipe to extract position of landmarks and bounded boxe How use Mediapipe to extract position of landmarks and bounding boxe Sep 29, 2020
@madelinegannon
Copy link
Owner

Hi @dgrnd4 ... The my_pass_through_calculator.cc file shows how you access different features by tags (like "hand_landmarks", "palm_dectections", "hand_rect") with mediapipe.

@dgrnd4
Copy link
Author

dgrnd4 commented Sep 29, 2020

i have the default code of mediapipe and i want to get this information but honestly i dont understand those things:

  1. must i change all the codes as yours?
    if not the 1 -> 2) which file should i modify? The demo_run_graph_main.cc or something else?

i just want to print in a .txt file something like this:
landmarks: positions , bounding boxe: positions

@madelinegannon
Copy link
Owner

Yeah, I feel you ... MediaPipe's modular graph-based architecture is not particularly intuitive. I'm still discovering new things about it, too.

In this repo/tutorial, I created a new node (my_pass_through_calculator.cc) where I formatted the hand data however I wanted, and then I integrated it into the compute graph for one of their example projects (in my case, this was their hand_tracking demo). You could do something similar, but just print out the data instead of sending out over UDP.

Have you worked your way through MediaPipe's Getting Started documentation? There's a Hello World! example that is helpful. Also there's more information on how to get help from the MediaPipe team.

@dgrnd4
Copy link
Author

dgrnd4 commented Sep 30, 2020

Many thanks, i get it using code picked up from the mediapipe original directory to extract the position of the landmarks.

Now i need the position of the boxe so i think that i'll use you code of the my_pass_through_calculator. Many thanks

@dgrnd4
Copy link
Author

dgrnd4 commented Oct 8, 2020

i'm reading now that you are using hand_tracking while i need multi_hand_tracking.
Do you have any solution for this?

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

No branches or pull requests

2 participants