简体   繁体   English

在 android 中使用 arcore 和 sceneform 检测房间的平面

[英]Detect planes of a room with corners using arcore and sceneform in android

I'm working on an AR application and what I'm trying to achieve is to detect all horizontal and vertical planes, including corners so that I have the basic structure of a room.我正在开发一个 AR 应用程序,我想要实现的是检测所有水平和垂直平面,包括角落,以便我拥有房间的基本结构。 Using ARCore and Sceneform I can distinguish between a vertical plane and a horizontal but to pinpoint a corner seems impossible to me.使用 ARCore 和 Sceneform,我可以区分垂直平面和水平平面,但对我来说要精确定位角落似乎是不可能的。 Is there any workaround so that I can detect the whole room with corners?有什么解决方法可以让我检测到整个房间的角落吗?

You have to apply some computer vision to this.您必须对此应用一些计算机视觉。 What I would do is record the images and the point cloud associated with each image along with the camera pose for each image.我要做的是记录图像和与每个图像关联的点云以及每个图像的相机姿势。

Then, I will apply the Harris corner detector on each image and project the point cloud for that image.然后,我将在每张图像上应用 Harris 角点检测器,并为该图像投影点云。 Some points from the projected point cloud will lie on the detected corners.投影点云中的一些点将位于检测到的角上。

Do this for several images and you will have a lot of points from the point clouds clustered around just the corners.对几张图像执行此操作,您将有很多来自点云的点聚集在角落周围。 You may have to adjust some parameters for the Harris corner detector to get good corners.您可能需要调整 Harris 角点检测器的一些参数才能获得好的角点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM