Search Unity

Question Detect objects in AR and place objects of exact size?

Discussion in 'AR' started by indie6, May 31, 2023.

  1. indie6

    indie6

    Joined:
    Dec 15, 2012
    Posts:
    101
    Hi!

    Can anyone point me in the right direction on how to achieve the following?

    Basically I want to scan objects in a room and place 3d objects on it.. For example if there is a table in the room, I want to place a cube of that exact size.. if there is a glass then I want to place a cylinder. If floor is detected I want to place a plane on it. How exactly can I achieve this in AR? does it require some CV algorithm to detect shape and size and then place a model on it?

    Thank you!
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
    I recommend that you try our sample app to understand the capabilities of ARCore and/or ARKit: https://github.com/Unity-Technologies/arfoundation-samples

    You will find that detecting surfaces such as tables and floors is easy, but semantic understanding of items in the scene such as parsing a "table" or a "glass" is not a feature that the AR frameworks currently offer. You would have to roll some sort of third-party CV solution if you wanted that level of understanding.
     
    indie6 likes this.
  3. indie6

    indie6

    Joined:
    Dec 15, 2012
    Posts:
    101
    Thank you, I'll take a look at the samples and see if surface detection works for my usecase
     
    andyb-unity likes this.
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062