Check out video_gen.py for the Lane Detection code and object_detection.ipynb for the actual object detection code.
Oh, and I even wrote an article on this breaking the topic down. https://srianumakonda.medium.com/pairing-lane-detection-with-object-detection-665b30462952.
Have fun!