Detect the grid cells in the given input image using traditional image processing techniques. Test the algorithm on various test images.
Perform path planning as show below where each color denotes different paths. Use same test images mention above.