How to count the number of lines (Hough Trasnform) in OpenCV

I successfully detect strands of hair in the image as lines. I see that the output image defines each hair as a line. I use cvHoughLines2()with a method parameter like CV_HOUGH_PROBABILISTIC.

Now I want to count these lines. The output image shows 1 or 2 lines above each hair. I see that each line consists of small segments. And so it’s hard to get the total. Any suggestions on this?

Thank you Pradeep

+3
source share
2 answers

Canny. , , :

  • , ;
  • ;
  • "" "" .

, .

OpenCV cvCanny(). threshold1 threshold2 (3- 4- ) .

, , ( Canny - Hough), , .

0

hough OpenCV2 CvSeq OpenCV1. . . OpenCV.

0

Source: https://habr.com/ru/post/1727738/


All Articles