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

Use it with Intel Realsense #69

Closed
niknaim opened this issue Feb 20, 2024 · 3 comments
Closed

Use it with Intel Realsense #69

niknaim opened this issue Feb 20, 2024 · 3 comments

Comments

@niknaim
Copy link

niknaim commented Feb 20, 2024

Very nice work. Thanks a lot. It brings me a lot forward in my project in which I need the object detection. One Question: Is it possible to connect a Realsense Camera to it and get the distances of the obejcts?

@niknaim niknaim changed the title use it with INtel Realsense Use it with Intel Realsense Feb 20, 2024
@domisjustanumber
Copy link
Collaborator

Hey @niknaim thanks for the kind words!

Mediapipe only takes a 2D video image as an input and infers distance purely based on that, so you can't feed it a depth map directly.

That being said, you can probably look up the xy position of each point returned by MediaPipe and then overwrite the Z coordinates with the one you get from the RealSense camera to get more accurate depth positions.

@niknaim
Copy link
Author

niknaim commented Feb 20, 2024

Thanks for your fast reply. how can I get the the xy position of all points? I only see the xy positions, with, height ans scale of the objects tracked by the object detection. Also I dont see any Z ccordinate, which I could overwrite.

@domisjustanumber
Copy link
Collaborator

oh if you're object detection, you only get the xy coordinates of the box containing the object. You could still add Z positions to those values from your RealSense data and/or crop the depth data to the same box and take an average depth of the pixels in the box?

There's lots of options, but they're all beyond the scope of MediaPipe

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