LSD-OpenCV-MATLAB
LSD-OpenCV-MATLAB copied to clipboard
about txt files
File "G:/python daima/pylsd-master/pylsd/lsd.py", line 31, in lsd fp = open(temp, 'r') FileNotFoundError: [Errno 2] No such file or directory: 'G:/python daima/pylsd-master/pylsd/61617ntl.txt' please Tell me how these txt files are generated
Experiencing the same issue.
lsdlib.lsdGet(src, ctypes.c_int(rows), ctypes.c_int(cols), temp)
is supposed to create a temporary file under path temp
, from where the C output is to be read afterwards. Obviously, this is not happening.
use this code,it will solve the problem: lsdlib.lsdGet(src, ctypes.c_int(rows), ctypes.c_int(cols), ctypes.c_char_p(bytes(temp,'utf-8')))