Skip to content

Sseankzs/Number-Plate-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv8 Malaysian ANPR and Vehicle Classification

Project Overview

This project focuses on Automatic Number Plate Recognition (ANPR) and vehicle classification based on the PLUS highway toll classification system in Malaysia. The model is trained using YOLOv8 for object detection and classification.

Dataset

  • Dataset includes images of Malaysian number plates and various vehicle classes.
  • Number plates are detected and classified separately.
  • Vehicles are categorized based on PLUS toll classification.
  • Dataset augmentation was performed to improve generalization.

Model Training Details

  • Model: YOLOv8
  • Training Images: 44
  • Validation Images: 10
  • Epochs: 300
  • Batch Size: 4
  • Image Size (imgsz): 640

Results

F1-Confidence Curve

  • Best F1 Score: 0.58 at Confidence 0.615
  • Class-wise Performance:
    • Class 1: High precision and recall.
    • Number Plate: Moderate precision but lower recall.
    • Class 2: Minimal detections, requires further training.

F1 Curve

Training Metrics

  • Box Loss (Bounding Box Regression): Decreasing over time, but validation loss fluctuates.
  • Class Loss (Classification Accuracy): Training improving, validation remains unstable.
  • Distribution Focal Loss (DFL): Gradually decreasing.

Performance Metrics

  • Precision: Fluctuating, showing inconsistent detections.
  • Recall: Unstable, indicating potential false negatives.
  • mAP50: Peaks at 0.65 but varies across training.
  • mAP50-95: Lower performance (~0.40), meaning detections across IoU thresholds are not strong.

Training Metrics

Issues & Challenges

  • Overfitting: Training loss decreases, but validation loss remains unstable.
  • Class Imbalance: Some classes have very few examples.
  • Dataset Size: More training data needed for better generalization.
  • Number Plate Variations: Need to train on both white and black plates to generalize across different Malaysian plates.

Next Steps

  • Increase dataset size and include more black and white number plates.
  • Improve augmentation strategies (color variations, rotations, brightness changes).
  • Tune hyperparameters (batch size, learning rate, optimizer selection).
  • Try alternative models such as YOLOv8x or fine-tuning on a pre-trained OCR model for number plate reading.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors