The application discloses a night highway pit and pond recognition method and
system based on low-illumination enhancement and
parallax calculation, and relates to the technical field of intelligent traffic monitoring and road maintenance. The method comprises the following steps: S1: collecting
environmental data, calculating a meteorological index to determine a
laser compensation power, and obtaining a
stereo image pair to generate environmental
metadata; S2: determining an enhancement strategy based on the environmental
metadata, and obtaining an enhanced
image pair by using an improved
Retinex algorithm; S3: performing
stereo matching on the enhanced
image pair, and generating a scene
depth map by fusing
pose data; S4: based on a double-
branch recognition model, fusing image and depth features, detecting and verifying a pit and pond area, and obtaining a pit and pond area
mask; and S5: based on the pit and pond area
mask, the
depth map and the
pose data, calculating three-dimensional parameters and a position of the pit and pond, and generating a detection report. Through adaptive
image enhancement and multi-
source data fusion technology, the accuracy of pit and pond recognition and the three-dimensional
measurement precision in a night low-illumination environment are improved, and automatic and efficient inspection without affecting traffic is realized.