LSD-OpenCV-MATLAB
LSD-OpenCV-MATLAB copied to clipboard
module is not callable
I am trying to execute a example script, but I am getting error "module is not callable" `runfile('/data/Work/workspace/seperator-detection/cap-python-lsd/pylsd/example/example_cv2.py') Traceback (most recent call last):
File "
File "/data/repos/tfenv/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 704, in runfile execfile(filename, namespace)
File "/data/repos/tfenv/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/data/Work/workspace/seperator-detection/cap-python-lsd/pylsd/example/example_cv2.py", line 16, in
TypeError: 'module' object is not callable`
I have the same problem, did you solve it?
Here lsd points to C: ...\pylsd-0.0.1-py3.8.egg \ pylsd \ lsd.py file, this is a module, I actually want to call the lsd function defined in it, so change it to lines = lsd. lsd (gray)