The invention discloses a lane line detection algorithm based on an instance segmentation neural network framework. The method comprises the following steps: firstly, establishing an instance segmentation model for lane line detection, wherein the instance segmentation model comprises a binary segmentation module branch and an embedded module branch; loading the original image information into a binary segmentation module branch, and segmenting lane line pixels from background pixels; Loading the original image information into an embedding module branch to obtain a pixel embedding vector of alane line; Then clustering the lane line pixels and the pixel embedding vectors; Transforming the original image by using a transformation matrix network module, outputting a projection transformation matrix of the aerial view, and projecting lane line pixels into the aerial view through the projection transformation matrix; and finally, performing lane line fitting on the pixel points projectedinto the aerial view, and outputting a lane line fitting result. According to the method, the calculated amount is reduced, and meanwhile the influence of environment change on the lane line detectioneffect is eliminated.