How can I get the distance between freespace lines and camera

I want to get the distance between freespace lines and camera, and then output it to the CAN bus.