First time here? Check out the FAQ!
answered 2020-08-16 06:53:09 -0600
https://docs.opencv.org/3.4/d9/db0/tutorial_hough_lines.html
This link is having working example with explanation for such need. Hope this will help like yours to start work upon.