To ensure continuous monitoring of reinforced soil-retaining walls (RSWs) even under low-illuminance conditions, such as during the night, it is imperative to evaluate the performance of deep learning-based detection. In this study, we constructed a laboratory RSW model and generated a dataset with varying illuminance levels to assess the impact of image enhancement and block detection. Various image enhancement methods were applied to improve image quality and evaluate their effect on deep learning. RGB optimization (RO) was proposed to optimize RGB intensity and compared with gamma correction, histogram equalization, and low-light image enhancement with illumination map estimation. RO demonstrated outstanding image enhancement performance, as evidenced by lightness order error, peak signal-to-noise ratio, and structural similarity index measure, ensuring high image quality. The trained RO model using Mask R-CNN exhibited excellent accuracy, recall, and F1 score, delivering remarkable detection performance under low illuminance conditions, resulting in a 7.44 % improvement in the F1 score. Image enhancement techniques that maintain similarity, such as lightness order error and structural similarity, across varying illuminance conditions contribute to enhancing the block detection performance of Mask R-CNNs.