ImageLines
ImageLines[image] finds line segments in image and returns the coordinates of their endpoints.
ImageLines[image, t] uses threshold t for selecting lines.
Examples
Detect lines in an image:
img = ExampleData[{"TestImage", "Lena"}];
lines = ImageLines[img];
HighlightImage[img, Line /@ lines]With threshold:
ImageLines[img, 0.5]Please visit the official Wolfram Language Reference for more details.