LineSegmentDetector in Opencv 3 with Python
old implementation is not available.
Now it is available as follows:
fld = cv2.ximgproc.createFastLineDetector()
lines = fld.detect(image)
Can a sample implementation code or a pointer be provided for implementing LSD with opencv 3.0 and python? HoughLines and HoughLinesP are not giving desired results in python and want to test LSD in python but am not getting anywhere.
I have tried to do the following:
LSD=cv2.createLineSegmentDetector(0)
 lines_std=LSD.detect(mixChl)
  LSD.drawSegments(mask,lines_std) 
However when I draw lines on the mask I get an error which is:
 LSD.drawSegments(mask,lines_std) TypeError: lines is not a numerical tuple
Can someone please help me with this? 
Thanks in advance.