Source: paper Related: SeaClear, Computer Vision for detecting a Metallic Grid and a set reference
I read that LSD had support only to OpenCV up to version 4.1.0
To use it with newer versions, I understand that
cv2.ximgproc.createFastLineDetector()
from contrib module can be used.