Skip to content
Open access

AI-Based Traffic Violation Detection System Using Computer Vision

Aug 2026 · Asian Journal of Research in Computer Science · 0 citations

TL;DR

The developed and implementation of an AI-based traffic violation detection system designed to automate the monitoring of road traffic violations using CCTV footage and computer vision techniques provides a practical and innovative solution to contemporary traffic violation control and management challenges.

Abstract

Aims: This project presents the development and implementation of an AI-based traffic violation detection system designed to automate the monitoring of road traffic violations using CCTV footage and computer vision techniques. The aim is to create a comprehensive solution that can analyse real-time or recorded video streams to detect violations such as red-light running and speeding, thereby improving road safety and reducing the manual surveillance burden. Study Design: The research employed a modular, data-driven approach combining software engineering best practices with advanced machine learning and computer vision techniques. The system was developed iteratively with a component-based architecture supporting separation of concerns and scalability. Place and Duration of Study: The study was conducted at Babcock University, Department of Computer Science, School of Computing, Ilishan-Remo, Nigeria, from September 2023 to May 2024. Methodology: The implementation utilised Python as the primary programming language, OpenCV for image processing and video analysis, and the YOLOv8 deep learning model for real-time object detection and vehicle classification. Multi-object tracking was accomplished using the DeepSORT algorithm, enabling consistent vehicle identification across video frames. Speed estimation was performed through frame displacement analysis and timestamp calculations. A rule-based violation detection module was integrated to identify traffic offences, including red-light violations and speeding. An Automatic Number Plate Recognition (ANPR) component utilising Optical Character Recognition (OCR) was included for vehicle identification. A structured MySQL database was implemented to store violation records with timestamps and evidence. An administrative dashboard, developed using HTML, CSS, JavaScript, and Bootstrap, provides real-time analytics, processing history, and violation reporting capabilities. The system architecture follows a three-tier model: Client-Side (Frontend), Server-Side (Backend), and Database Layer. Results: Functional testing confirmed successful video upload, accurate vehicle detection using the YOLOv8 model, which demonstrated high precision, reliable multi-object tracking with consistent vehicle ID maintenance, accurate speed estimation through frame analysis, and correct violation flagging with real-time visual alerts. Performance evaluation demonstrated that the YOLOv8 model processed video frames efficiently at optimal detection speed, maintaining consistent detection accuracy and tracking reliability under various traffic conditions, including different lighting, weather, and traffic density scenarios. The system successfully generated violation reports with vehicle identification through licence plate recognition, timestamps, and evidence imagery for enforcement purposes. Conclusion: The AI-based traffic violation detection system provides a practical and innovative solution to contemporary traffic violation control and management challenges. By integrating advanced computer vision features, including object detection, multi-object tracking, and automatic number plate recognition, the system analyses captured footage with high accuracy to identify violations and extract relevant vehicle details. The system's ability to provide real-time evidence capture and generate automated violation reports demonstrates how modern AI technologies can be effectively leveraged to create practical tools that meet contemporary traffic management needs, enabling authorities to manage road safety with greater effectiveness and efficiency.

Read PDF

Similar papers

Open access Sep 2026

AI-Powered Road Accident Detection Using Learning

An AI-powered real-time Vehicle Accident Detection system developed using Python, OpenCV, and Deep Learning techniques that improves accident detection accuracy compared to traditional methods and reduces dependency on manual monitoring.

Anisha R, K. S. Thirunavukkarasu · 0 citations
Open access Sep 2026

Development of highway vehicle detection using background subtraction and Haar cascade methods

A streamlined vehicle detection framework that combines background subtraction for motion-oriented foreground extraction with a Haar cascade classifier for object identification in traffic video sequences is introduced, suggesting that classical computer vision techniques remain viable alternatives for real-time traffi...

Ni Gusti Ayu Dasriani, Anthony Anggrawan, Khasnur Hidjah et al. · 0 citations
Conference Jul 2026

Smart Traffic Enforcement: A Deep Learning-based Framework for Helmet Violation Detection and Fine Collection

Motorcycle traffic accidents have been on the rise because of low compliance with helmet laws and there is need for automated traffic monitoring and enforcement systems. This paper proposes a traffic enforcement solution that combines YOLOv8 based object detection and PaddleOCR for automatic violation detection and lic...

Akash Tummala, Muskan Keshri, Chinna Gopi Simhadri · 0 citations
Conference Jul 2026

Efficient Traffic Rule Enforcement Framework using YOLOv8-Based Object Detection

With the increasing number of vehicles, urbanization and the constant rise in road usage, traffic violations have become hugely problematic in today's transportation situations. Some of the most common dangerous driving behaviors that lead to road accidents and traffic delays are as follows: Not wearing a helmet, runni...

Selvam L, G. Aninthitha, P. M et al. · 0 citations
Open access 2018

Intelligent Traffic Accident Detection Using Computer Vision

Pre-2018 approaches to traffic accident detection using video surveillance show high detection accuracy with low false alarms, especially in controlled environments like highways and intersections, but challenges remain in real-time implementation due to lighting, occlusion, and camera angle issues.

Nimal Perera, Tharindu Jayasinghe · 0 citations
Conference Jul 2026

A Hybrid Lightweight Framework for Real-Time CCTV-based Accident Detection with Automated Emergency Alert Generation

The high rate of growth in road traffic has been a major cause of drastic increase in the number of accidents which have resulted in high demand of effective real-time monitoring and response systems. This paper introduces a hybrid system of accident detection and classification of severity based on CCTV video streams...

J. Viswanath, Jyothinagaram Harika, Gajulapalli Karishma et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.