The application discloses a coloring method and device of a three-dimensional
road surface, a storage medium, an electronic device and a vehicle, and can solve the problems of time-consuming and inaccuracy in generating a
road edge line. The method comprises: performing a reduction operation on the three-dimensional
road surface according to a preset interval and a curved surface parameter of the three-dimensional
road surface to generate a first three-dimensional road
surface point cloud; determining a second three-dimensional road
surface point cloud corresponding to a road image according to the
pose of each frame of road image in the first three-dimensional road
surface point cloud, the second three-dimensional road surface
point cloud comprising three-dimensional road surface points in the first three-dimensional road surface
point cloud, which are at a distance less than or equal to a preset distance from the
pose of the road image; projecting the second three-dimensional road surface
point cloud to the corresponding road image to obtain a projection point cloud in the road image; and coloring a target three-dimensional road surface point in the first three-dimensional road surface point cloud corresponding to a target projection point into a target color to highlight the
road edge of the three-dimensional road surface, the target projection point comprising a projection point in the projection point cloud of each frame of road image located in a target area.