Tracking Car

Infrared tracing is to detect the color of the ground line through the infrared emission receiving tube. The white line reflects the light, and the black line does not reflect the light. Using at least two, it can be judged whether the black line or the white line is in the middle of the car, and then adjust the left and right motor speed. Is equivalent to adjusting direction?