DashCop: Automated E-ticket Generation for Two-Wheeler Traffic Violations Using Dashcam Videos

WACV 2025

IIIT Hyderabad

Triple Riding Violation

DashCop employs our novel Segmentation and Cross-Association (SAC) module to accurately detect and track multiple riders on a single motorcycle. The system can identify triple riding violations from dashcam footage, even under challenging road conditions and varying lighting.

Helmet Rule Violation

Our system also detect riders without helmets, a critical safety violation. The cross-association-based tracking algorithm ensures consistent monitoring of individual riders throughout the video sequence, enabling accurate violation detection and E-ticket generation.

Abstract

Motorized two-wheelers are a prevalent and economical means of transportation, particularly in the Asia-Pacific region. However, hazardous driving practices such as triple riding and non-compliance with helmet regulations contribute significantly to accident rates. Addressing these violations through automated enforcement mechanisms can enhance traffic safety.

In this paper, we propose DashCop, an end-to-end system for automated E-ticket generation. The system processes vehicle-mounted dashcam videos to detect two-wheeler traffic violations. Our contributions include: (1) a novel Segmentation and Cross-Association (SAC) module to accurately associate riders with their motorcycles, (2) a robust cross-association-based tracking algorithm optimized for the simultaneous presence of riders and motorcycles, and (3) the RideSafe-400 dataset, a comprehensive annotated dashcam video dataset for triple riding and helmet rule violations.

Our system demonstrates significant improvements in violation detection, validated through extensive evaluations on the RideSafe-400 dataset.

DashCop: Methodology

DashCop: Unified Interface

Comparison

Triple Riding Violation Detection

Our SAC module improves rider-motorcycle association by learning to detect cross-object class, outperforming IOU-based methods. The joint tracking approach reduces false positives in crowded scenes.

Evaluation of triple riding violation detection

Helmet Rule Violation Detection

Frame-level detection approach achieves superior F1-scores in helmet violation detection, demonstrating better balance across different ROI extraction methods compared to existing solutions.

Evaluation of helmet rule violation detection

Rider-Motorcycle Association

Our SAC module achieves superior association accuracy compared to geometric heuristic methods by learning directly in image space rather than relying solely on bounding box coordinates.

Evaluation of rider-motorcycle association

Rider-Motorcycle Instance Tracking

Joint tracking of rider-motorcycle instances demonstrates better performance across HOTA, MOTA, and IDF1 metrics compared to independent tracking and post-hoc aggregation approaches.

Evaluation of rider-motorcycle instance tracking

Evaluation Criteria for E-ticket Generation

For a given R-M track, the labelling (TP, FP, FN) at various stages of system is used to determine the final E-ticket level label of the track. E.g., a True Positive (TP) prediction at all stages is considered a TP for E-ticket generation system.

Evaluation of e-ticket generation

Overall E-ticket System Performance

The automated system achieves an F1-score of 72.18%, reflecting good overall performance. In practice, traffic enforcement personnel review E-Tickets and corresponding evidence before issuance. This human-in-the-loop approach eliminates false positives, raising the F1-score to 82.05%, improving system reliability.

Overall E-ticket system performance

References: Goyal et al. [21]; Cui et al. [16]; YOLOv8-x [28]; ByteTrack [62]; DeepOCSORT [37]; BotSORT [4]; HybridSORT [59].

Our Dataset: RideSafe-400

Triple Riding and Helmet Rule Violators Captured in Diverse Scenarios

The RideSafe-400 dataset captures a wide range of real-world scenarios that challenge traffic violation detection systems. These include crowded scenes with multiple motorcycles, varying lighting conditions, partial occlusions, and diverse viewing angles. The dataset features comprehensive annotations for triple riding violations and helmet rule compliance across a range of urban and suburban environments.

RideSafe-400 Dataset showing various challenging scenarios of traffic violations
Examples from RideSafe-400 Dataset

Statistics

We provide both frame-level and track-level annotations for rider-motorcycle pairs, triple riding instances, and helmet violations. The dataset includes detailed license plate annotations with format information, enabling comprehensive evaluation of our automated E-ticket generation system. These annotations support thorough evaluation of detection, tracking, and violation recognition tasks.

RideSafe-400 Statistics
Top-Left: Frame-level annotations for each object category. Bottom-Left: Track-level annotations for each object category. Top-Right: License plate number (LPN) attribute labelling format. Bottom-Right: License plate annotation distribution.

Download the Dataset

Coming Soon!

BibTeX

      
        @InProceedings{Rawat_2025_WACV,
          author    = {Rawat, Deepti and Gupta, Keshav and Roy, Aryamaan Basu and Sarvadevabhatla, Ravi Kiran},
          title     = {DashCop: Automated E-Ticket Generation for Two-Wheeler Traffic Violations using Dashcam Videos},
          booktitle = {Proceedings of the Winter Conference on Applications of Computer Vision (WACV)},
          month     = {February},
          year      = {2025},
          pages     = {5387-5397}
      }
      
    

Reach out at

deepti.rawat@research.iiit.ac.in