Disclaimer: huge openCV noob
Traceback (most recent call last): File \"lanes2.py\", line 22, in canny = canny(lane_image)
Traceback (most recent call last):
File \"lanes2.py\", line 22, in
canny = canny(lane_image)
Sometimes I have this error when videostream from imutils package doesn't recognize frame or give an empty frame. In that case, solution will be figuring out why you have such a bad frame or use a standard VideoCapture(0) method from opencv2