Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Measuring relative distance (Y axis) between two physical objects

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