The increasing number of motor vehicles in Kupang City has led to higher traffic congestion, particularly at road intersections, creating the need for a system capable of automatically detecting and counting vehicles to support traffic light control based on real-time conditions. This study aims to develop a vehicle detection and counting system at an intersection using the YOLOv8 algorithm integrated with the ByteTrack algorithm for object tracking. The research data were collected through video recordings at the Lippo Plaza Kupang intersection and processed through frame extraction, image annotation, dataset splitting, model training, validation, and testing using Precision, Recall, Average Precision (AP), and Mean Average Precision (mAP) as evaluation metrics. The results show that the proposed model is capable of detecting two vehicle classes, namely cars and motorcycles, performing consistent object tracking using ByteTrack, and automatically counting vehicles based on their movement across a virtual counting line. The evaluation results indicate that the model achieves good performance in terms of Precision, Recall, AP, and mAP, although the detection performance for motorcycles is lower than that for cars due to their smaller object size and occlusion conditions. Therefore, the developed system is capable of supporting automatic traffic monitoring and has the potential to be implemented as a supporting component of adaptive traffic light control systems at road intersections.
Copyrights © 2026