Im using opencv hough transform to attempt to detect shapes. The longer lines are all very nicely detected using the HoughLines method.but the shorter lines are completely ignored. Is there any way to also detect the shorter lines?
the code I'm using is described on this page http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_houghlines/py_houghlines.html
I'm more interested in lines such as the corner of the house etc. which parameter should I modify to do this with Hough transform? or is there a different algorithm I should be looking at
On the link you provide look at HoughLinesP
Also look at the edge image generated from Canny. You should only be able to find lines where lines exist in the edge image.
and here is the line detection output overlaid on your image:
Play around with variables
minLineLength
andmaxLineGap
to get a more desirable output. This method also does not give you the long lines that HoughLines does, but looking at the Canny image, maybe those long lines are not desirable in the first place.