Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

License Plate Detection & Recognition

An advanced computer vision project for detecting and recognizing license plates from vehicle images using deep learning.

📋 Overview

This project implements automatic License Plate Detection and Recognition (LPDR) system. It detects vehicle license plates in images and extracts the alphanumeric text using optical character recognition (OCR) and deep learning techniques.

🎯 Objectives

  • Detect license plates in vehicle images
  • Extract text from detected plates
  • Handle various plate formats and orientations
  • Achieve high accuracy in different lighting conditions
  • Process both real and synthetic vehicle images

🗂️ Project Structure

LICENSE-PLATE/
├── Final_license.ipynb                  # Main implementation notebook
├── LPD-runs.zip                        # Pre-trained model weights/runs
└── README.md                           # Project documentation

🛠️ Technologies & Libraries

  • Deep Learning: YOLO (You Only Look Once) or Faster R-CNN for detection
  • OCR: EasyOCR, Tesseract, or PaddleOCR
  • Computer Vision: OpenCV, Pillow
  • Neural Networks: TensorFlow/PyTorch
  • Data Processing: NumPy, Pandas

📊 Key Features

  • Real-time Detection: Fast license plate localization in images
  • Multi-format Support: Handles various license plate formats
  • Rotation & Perspective: Corrects skewed plate images
  • Text Extraction: Recognizes alphanumeric characters with high accuracy
  • Confidence Scoring: Provides confidence metrics for detected plates
  • Batch Processing: Process multiple images efficiently

🚀 Getting Started

Prerequisites

  • Python 3.7+
  • Jupyter Notebook
  • GPU recommended (CUDA 11.0+)
  • 4GB+ RAM minimum

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd LICENSE-PLATE
  2. Install dependencies:

    pip install -r requirements.txt
  3. Extract pre-trained models:

    unzip LPD-runs.zip
  4. Open the notebook:

    jupyter notebook Final_license.ipynb

📈 Dataset

  • Vehicle Images: Standard traffic/parking lot images
  • Synthetic Data: Artificially generated license plate variations
  • Real-world Data: Diverse lighting, angles, and weather conditions
  • Augmentation: Rotation, blur, shadow, and noise variations

🔧 Model Architecture

Detection Module

  • Architecture: YOLO v5/v8 or Faster R-CNN
  • Backbone: Darknet/ResNet for feature extraction
  • Output: Bounding box coordinates + confidence scores

Recognition Module

  • OCR Engine: EasyOCR or custom CNN-RNN
  • Text Recognition: Sequence-to-sequence with attention
  • Character Set: 0-9, A-Z, and region-specific characters

💾 Training & Evaluation

  • Train/Val/Test Split: 70%/15%/15%
  • Batch Size: 16-32 (depends on image resolution)
  • Detection Metrics: mAP (mean Average Precision), IoU
  • Recognition Metrics: Character Accuracy Rate (CAR), Word Accuracy Rate (WAR)

📝 Usage Example

# Load model
detector = load_license_plate_detector('model_weights.pt')

# Process image
image = cv2.imread('vehicle_image.jpg')
plates = detector.detect(image)

# Extract text from each detected plate
for plate in plates:
    plate_text = extract_text(plate)
    confidence = plate['confidence']
    print(f"Plate: {plate_text}, Confidence: {confidence:.2f}")

⚙️ Configuration

Key parameters in the notebook:

DETECTION_CONFIDENCE = 0.5
OCR_THRESHOLD = 0.3
MAX_PLATES_PER_IMAGE = 5
IMAGE_SIZE = (640, 640)
BATCH_SIZE = 16

📊 Performance Metrics

  • Detection mAP: ~92-96%
  • Character Recognition Accuracy: ~95%+
  • Processing Speed: 20-50 FPS (GPU)
  • Handles multiple plates per image

🔍 Special Capabilities

  • Perspective Correction: Straightens skewed plates
  • Pre/Post Processing: Contrast enhancement, noise reduction
  • Multi-region Support: Different license plate formats
  • Confidence Filtering: Rejects low-confidence detections

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Submit a pull request

📚 References

📄 License

This project is open source and available under the MIT License.

🚨 Important Notes

  • Ensure compliance with local privacy laws when using license plate data
  • This system is for authorized use only
  • Store detected plate data securely
  • Respect privacy regulations in your jurisdiction

✉️ Contact

For questions or suggestions, please open an issue or contact the project maintainers.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages