Measuring relative distance (Y axis) between two physical objects

asked 2018-03-07 13:04:35 -0600

Zmaslo gravatar image

Hi, I am currently developing an AR app that reacts to various positions of physical objects (lego-like bricks) that are placed on the desk in a real-time.

If I place the first block on the desk and second block so it is next to the first one, but in a different Y position, is it possible to compute a Y distance relative to the first object?

I would like the app to react to the changing position in real-time. AR would then change the color overlay and number displayed on that brick.

For better illustration, please see this GIF: https://imgur.com/a/RsciD

Would I need to use markers to identify the bricks? Is it possible with ARKit or do I need to use OpenCV? All suggestions are more than welcome!

Thank you

edit retag flag offensive close merge delete

Comments

please have a look here first: https://en.wikipedia.org/wiki/Pinhole...

the gist of it is: to measure real world sizes/distances

  • you have to calibrate your camera, to know the fov (and never touch the lens again)
  • you have to know the distance to your objects (and the fov), to estimate the size or the distance between them)
berak gravatar imageberak ( 2018-03-07 13:47:38 -0600 )edit