Converts regions to HSV color space. Detects walls and centers robot between them using PID control. Counts passed lines; after 12 lines, robot stops.