The same problem could also be addressed by having two cameras, one on each side of the track, synchronized and recording the same plane.
One could align the cameras into the same plane by putting a vertical array of distinctive marks (e.g. rapidly blinking LEDs) on each camera, above and below the optics and in line with it, such that each camera would see the other’s marks when correctly aligned.