Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is createLineSegmentDetector not supported anymore for cv2? #11

Open
yehia123 opened this issue Nov 6, 2019 · 2 comments
Open

Is createLineSegmentDetector not supported anymore for cv2? #11

yehia123 opened this issue Nov 6, 2019 · 2 comments

Comments

@yehia123
Copy link

yehia123 commented Nov 6, 2019

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'

@makelove
Copy link
Owner

makelove commented Nov 6, 2019

should be

do you install opencv-contrib-python ?

pip install opencv-contrib-python

@IDKYamHere
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants