How do I merge nearby line in opencv HoughLinesP method.
I have detected the lines using HoughLineP method, now I want to merge nearby lines based on distance .