Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Parameters in Hough Transform

Hi guys, i have read a journal about text line extraction using hough transform. Basically, there are 6 steps before we process to text line extraction using hough transform. I have done three previous steps : grayscale conversion, binarization and edge detection with sobel masks. And in the fourth step, we have to use hough transform in image generated from edge detection to detect text line. There are four parameters mentioned in the journal : deltaRo, deltaTheta, startTheta, endTheta, connectDistance and pixelCount.

I have read in opencv documentation that there is hough transform function --> void HoughLines(InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0 )

I want to ask, where should i set parameter startTheta, endTheta, connectDistance and pixelCount ? Should i implement it manually ? Thanks