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)
Some dtype are not supported by specific OpenCV functions. For example inputs of dtype np.uint32 create this error. Try to convert the input to a supported dtype (e.g. np.int32 or np.float32)