Detecting text lines in image by means of Hough Transform
OpenCV now has a text detection module included. You might want to take a look at it:

Detector: http://docs.opencv.org/master/modules/objdetect/doc/erfilter.html
Recognizer: http://docs.opencv.org/trunk/modules/text/doc/ocr.html