Project finished by myself in Inspur, the main idea is simple:
Binary image
Separate the channels and obtain three single channel gray images corresponding to blue, green and red respectively, Filter the values of each pixel of the three images respectively, for example, white Lane (b > 200, G > 200, R > 200, all set to 255, otherwise 0), Yellow Lane (b < 150, G > 200, R > 200, all set to 255, otherwise 0), Merge the images to obtain a three channel black-and-white binary image (only 255 and 0, i.e. 0 and 1).
Perspective Transformation
Using the condition that the perspective center, image point and target point are collinear, according to the perspective rotation law, the background surface (perspective surface) rotates a certain angle around the trace (perspective axis), which destroys the original projection beam, and can still maintain the transformation of the projection geometry on the background surface.