This still needs some work. Here are a list of issues present:
A wacky center line will be given if we lose the right line. I'd prefer it if no center line were given in this scenario (if the right or center line is lost)
The detection for the outside line contour is flawed. Right now I have it just choosing the largest contour, but this is a fundamentally flawed approach (what if the camera cuts through the contour? What if we lose the contour?). I'm opening an issue for this now; a better detection algorithm for this is my next step.
This still needs some work. Here are a list of issues present: