pylsd icon indicating copy to clipboard operation
pylsd copied to clipboard

TypeError: 'module' object is not callable

Open Fansgithub2019 opened this issue 6 years ago • 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?

Fansgithub2019 avatar Dec 30 '19 11:12 Fansgithub2019

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

from pylsd.lsd import lsd

mathigatti avatar Mar 11 '20 15:03 mathigatti

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

anyongjin avatar Jun 10 '21 12:06 anyongjin