有没有一种方法可以检测不完全笔直的线条?在
我有代表矩形的对象,但由于使用广角相机失真和质量不好的预处理,所以有点不均匀。另外,我必须事先做一个透视转换,这是另一个因素,较差的线质量。在
我试着用hough线算法找出边缘线。但由于形状质量不好,有很多凹凸不平,所以无法找到倾斜的边缘。在
我尝试了正常的hough线变换(红线)和概率hough线变换(绿线),但结果相当糟糕。在
有没有其他方法可以检测到这种情况?或者有没有办法改善我的形象,让我得到直线?线条的变形是可变的,所以很难修复。在
这里还有一个例子:
我使用的是python3.4和opencv3.2,numpy1.12。 这是一个新的解决方法。在
你的边缘非常清晰,对概率Hough线变换来说绝对足够好。我想你只需要多玩一些自由参数。在
相关问题 更多 >
编程相关推荐