OpenCV  3.4.4
Open Source Computer Vision
samples/cpp/tutorial_code/ImgTrans/houghlines.cpp

An example using the Hough line detector

Hough_Lines_Tutorial_Original_Image.jpg
Sample input image
Hough_Lines_Tutorial_Result.jpg
Output image