- Reading original image using SciPy.
- Cropping the image to the lower half (to remove non-bike lane features), and clip the bottom 10% of the picture as well (to remove bike tire from the view).
- Filtering — In this case, a median filter is applied to preserve edges.
- Converting the image from RGB to HSV and filter image to preserve only darker (defect) pixels.
- Edge detection using the canny edge detection.
- A 3x3 gaussian filter is applied over the image and then perform erosion / dilatation operations on remaining white pixels to remove noise.