OpenCV-Python-Tutorial icon indicating copy to clipboard operation
OpenCV-Python-Tutorial copied to clipboard

Is createLineSegmentDetector not supported anymore for cv2?

Open yehia123 opened this issue 5 years ago • 2 comments

lsd = cv2.createLineSegmentDetector(0) cv2.error: OpenCV(4.1.1) /io/opencv/modules/imgproc/src/lsd.cpp:143: error: (-213:The function/feature is not implemented) Implementation has been removed due original code license issues in function 'LineSegmentDetectorImpl'

yehia123 avatar Nov 06 '19 00:11 yehia123

should be

do you install opencv-contrib-python ?

pip install opencv-contrib-python

makelove avatar Nov 06 '19 05:11 makelove

There is an older implementation of: https://github.com/primetang/LSD-OpenCV-MATLAB/tree/master/pylsd

Running this command solved my issue : pip install pylsd

PyLSD is a layer over the LSD software (LSD - Line Segment Detector)

IDKYamHere avatar Feb 05 '20 10:02 IDKYamHere