ARKit4 wall detection for devices without LIDAR

Hi! I would like to ask about the new ARKit 4. I have an app that uses AR to display paintings on the wall. For now, I base on the floor detection and then I place the painting (the wall detection worked really really bad) Is there any new improvements for wall detection with the device without LIDAR? Basically any improvements which might be helpful? I saw you guys were mostly focused on the lidar sensor. Or there no benefits for my case?
Accepted Answer
ARKit 3 and above has ML-enhanced plane detection, which leverages machine learning to help detect walls even if they only exhibit few features. It requires some context of the room, so you should not start by pointing at the vertical surface only.

This feature is available on devices with an A12 Bionic processor or newer.

If you are running ARKit 2.0 or above then you can turn on vertical plane detection by setting the .planeDetection property to have your device detect vertical planes like walls in your environment.

Code Block
let configuration = ARWorldTrackingConfiguration()
configuration.planeDetection = [.horizontal, .vertical]
arView.session.run(configuration)


ARKit4 wall detection for devices without LIDAR
 
 
Q