LSD-OpenCV-MATLAB icon indicating copy to clipboard operation
LSD-OpenCV-MATLAB copied to clipboard

about txt files

Open duan147 opened this issue 6 years ago • 2 comments

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

duan147 avatar May 15 '18 09:05 duan147

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.

mollenhauerm avatar Sep 07 '18 14:09 mollenhauerm

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')))

shashd avatar Sep 12 '19 02:09 shashd