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)
This is a general error, which throws sometimes, when you have mismatch between the types of the data you use. E.g I tried to resize the image with opencv, it gave the same error. Here is a discussion about it.