primetang/pylsd

TypeError: 'module' object is not callable

Opened this issue · 2 comments

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?

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

from pylsd.lsd import lsd

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