| CPC G06T 7/11 (2017.01) [G06T 5/20 (2013.01); G06T 7/12 (2017.01); G06T 2207/20081 (2013.01); G06T 2207/20084 (2013.01); G06T 2207/30236 (2013.01); G06T 2207/30256 (2013.01)] | 20 Claims |

|
1. A method for segmenting roads in images using an electronic device, the method comprising:
obtaining a road image;
obtaining a plurality of regions of interest based on the road image, comprising: performing a preliminary detection on the road image and determining a position of a road in the road image; determining a preprocessed region according to the position of the road in the road image, wherein the plurality of regions of interest comprise the preprocessed region;
generating a splicing region based on the plurality of regions of interest; and
inputting the splicing region into a pre-trained road segmentation model, and obtaining a road segmentation image and a segmentation result in the road segmentation image.
|