Hough_line() has poor accuracy with a short line

Hough is the wrong approach.

show your data. then we can discuss approaches.