Rail infrastructure plays an important role in fulfilling the demand for freight and passenger transportation. Increases in traffic volume, heavier axles and vehicles, higher speeds, and increasing climate extremes all contribute to the constant strain on the infrastructure. Due to their major importance in the transportation of people and freight, they are subject to continuous condition monitoring. This is an essential requirement for the selective planning of maintenance tasks and ultimately for safe and reliable operation. Various measuring systems have been developed for this purpose. These must measure precisely, quickly, and robustly under difficult conditions. Whether installed from mobile or stationary platforms, they have to cope with a wide range of ambient temperatures and lighting conditions, harsh environmental influences, and varying degrees of reflection. Despite these circumstances, railway operators require precise measurement data, high data densities even at high traveling speeds, and a user-friendly presentation of the results. Photogrammetry, laser scanning, and fiber optics are light-based measurement methods that are used in this sector. They are able to record with high precision rail infrastructure such as overhead contact systems, clearance profiles, rail tracks, and much more. This article provides an overview of the established and modern optical sensing methods, as well as the use of artificial intelligence as an evaluation method, and highlights their advantages and disadvantages.