简体   繁体   English

我正在尝试使用点云库检测正方形。 我有来自3D激光雷达的pcl数据,需要在其中找到正方形

[英]I'm trying to detect a square using Point cloud library. I have pcl data from a 3D lidar in which I need to find squares

I'm trying to detect squares using Point cloud library. 我正在尝试使用点云库检测正方形。 I have pcl data from a 3D lidar in which I need to find squares. 我有3D激光雷达的pcl数据,需要在其中找到正方形。 Ransac doesn't have a model for square. Ransac没有方形的模型。 I wish to know what can be the most efficient method for square detection. 我想知道什么是正方形检测的最有效方法。

If you are looking for a filled square, the SACMODEL_PLANE should be able to find it. 如果您正在寻找一个填充的正方形,则SACMODEL_PLANE应该能够找到它。 You may need to cluster the inliers of the plane model, and filter the clusters to find the location of the square. 您可能需要对平面模型的内部进行聚类,然后对聚类进行过滤以找到正方形的位置。

If you are looking for the outline of a square, the SACMODEL_LINE should be able to find the 4 sides separately. 如果要查找正方形的轮廓,则SACMODEL_LINE应该能够分别找到4个边。 You will then need some logic to filter out lines that do not belong, as well as to combine the inliners of the correct lines. 然后,您将需要一些逻辑来过滤掉不属于您的线,以及合并正确线的衬线。

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

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