In this study, we propose a novel CLAHE-based nighttime image contrast enhancement approach for vehicle detection under nighttime conditions, which improves the contrast of low-quality nighttime images while preventing over-enhancement by employing the image dehazing technique. To implement and evaluate our proposed contrast enhancement method on nighttime images, we consider a scenario of using a camera-based Internet of Things (IoT)-edge computing device for traffic and road surveillance. Edge-computing and IoT technology enable significant amounts of novel studies to advance traffic system monitoring, sensing, control, and management. Considering multiple metrics of image enhancement quality, the proposed nighttime image contrast enhancement method outperforms some existing well-performing CLAHE-based methods. To provide accurate vehicle detection under nighttime conditions and different challenges, including vehicle overlapping, low-light conditions, camera vibrations, and image distortion, must be addressed. For this purpose, a deep neural network based on YOLOv5 architecture has been designed and trained using our custom-labeled dataset. The developed neural network is proven to be effective in the detection of different vehicles under low-light ambient conditions using video captured from a stationary camera. Experiments on our dataset show that the proposed contrast enhancement method greatly improves the detection performance of the trained YOLOv5 model under low-environment-light conditions compared with the model trained using unenhanced images. The model trained with enhanced images can provide an improvement of 5.7% on F1 score, 6.3% on mAP0.5, and 3.4% on mAP0.5:0.95 under specific conditions.
Add the publication’s full text or supplementary notes here. You can use rich formatting such as including code, math, and images.