Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For line detection you need to get the edges of the image, i.e. probably the sobel-filter is your friend, for the detection-part you can use HoughLines. From these you can easily compute the angles and keep only those satisfying your constraints.

By the way: This Q&A forum is not intend to solve your programming tasks. Please also use its search-function first.