TypeError: 'module' object is not callable
Opened this issue · 2 comments
Fansgithub2019 commented
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
check the new code example, you should import lsd like this
from pylsd.lsd import lsd
anyongjin commented
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