primetang / pylsd

python bindings for LSD - Line Segment Detector.
Other
159 stars 63 forks source link

TypeError: 'module' object is not callable #13

Open Fansgithub2019 opened 4 years ago

Fansgithub2019 commented 4 years ago

I get the following error when I try to run example_cv2.py

Traceback (most recent call last): File "E:\pylsd\example\example_cv2.py", line 16, in lines = lsd(gray) TypeError: 'module' object is not callable

How to solve it?

mathigatti commented 4 years ago

check the new code example, you should import lsd like this

from pylsd.lsd import lsd
anyongjin commented 3 years ago

I upgraded the lsd algorithm version from 1.5 to 1.6, and solved the FileNotFoundError. Now it works on python3. You can install it with pip install pylsd2