I am trying to extract lane boundary lines from two recorded video cameras on the sides of the vehicle. I would ultimately like to calculate lane position from those boundaries.
My thought process is:
- Convert the video to a series of images.
- Convert images to grayscale.
- Identify the portion of the image that has white as opposed to asphalt.
- Filter unwanted pixels out of the video leaving mostly the lane.
- Calibrate my camera, so I can know how much 1 pixel is distance wise.
- Then do the calculations by byte locations in Python to determine the distance.
Does anyone have a recommendation for a image file format? I recall there was a format that has no compression or header. It was basically each pixel had a value from $0$ to $255$ ($0$ is black, $255$ is white I believe), and the byte location in the file represented the pixel. So if you had an image of $640\times 480$ you would have that many bytes.