You will either need several cameras to cover a long length, or the use of a fisheye (180°) camera. In that later case, precision may not be as good as with a single standard camera, in particular on the edges of the image, where the geometry of the image is distorted.