You can create your own lane segmentation model using this dataset https://www.kaggle.com/datasets/mehmetokuyar/line-segmentation , then you can set up a lane detection algorithm by referencing this code.
For running example :
python3 serit_tespit.py