How would I detect the angle of these two lines?

时间:2017-12-18 08:04:32

标签: python opencv image-processing scikit-image hough-transform

enter image description here

As you can see in the picture a cone is generated when a person is using maps. I would like to know if it is possible to detect the two outer-lines of the cones like this but the ultimate goal is to use this information to find the angles at which the lines are at.

I was following this tutorial on hough-transform but end up with this. Looking for an easier way to find the angles if possible.

XAxis xAxis = chart.getXAxis();
xAxis.setAxisMinimum(<yourMinum>);
xAxis.setAxisMaximum(<yourMaximum>);

1 个答案:

答案 0 :(得分:2)

这是我的结果: enter image description here

你应该首先参考: Detect Colored Segment in an image

我的步骤是:

  1. 将其转换为HSV,然后获取S
  2. S
  3. 上的精干
  4. 检测精确边缘,过滤一些标尺。