How to detect vertical planes in ARKit?

前端 未结 7 1993
闹比i
闹比i 2020-12-12 19:30

How is it possible to implement a vertical plane detection (i.e. for walls)?

let configuration = ARWorldTrackingSessionConfiguration()
configuration.planeDet         


        
7条回答
  •  借酒劲吻你
    2020-12-12 19:48

    i did it with Unity, but i need to do my math.

    I use Random Sample Consensus to detect vertical plane from the point cloud returned by ARkit. It's like having a loop that randomly picks 3 points to create a plane and counts points that matches it, and see which try is the best.

    It's working. But because ARkit can't return many points when the wall is in plain color. So it doesn't work in many situation.

提交回复
热议问题