GithubHelp home page GithubHelp logo

alpr-pakistan's Introduction

Real-Time ALPR (Automatic License Plate Recognition)

Real-Time ALPR (Automatic License Plate Recognition) is a project aimed at detecting and recognizing license plates in real-time video streams. It utilizes YOLOv8 for license plate detection and manga-ocr for optical character recognition (OCR) to extract the license plate number.

Features

  • Real-time detection and recognition of license plates in video streams.
  • Utilizes YOLOv8 for license plate detection.
  • Uses manga-ocr for optical character recognition (OCR) to extract license plate numbers.
  • Supports detection of single license plates.
  • Specifically designed for 6-digit license plate numbers.

Requirements

  • Python 3.x
  • OpenCV
  • ultralytics
  • manga-ocr

Installation

  1. Clone this repository:

    git clone https://github.com/Fahad-H36/ALPR-Pakistan.git
  2. Install dependencies:

    pip install -r requirements.txt

Usage

Using a Video File

  1. Prepare your video for processing.

  2. Run the main script:

    python main.py --video path_to_your_video.mp4

    Replace path_to_your_video.mp4 with the path to your video file.

    The script will process the video, detect license plates, and recognize the plate numbers in real-time.

Using a Camera

  1. Run the main script with the --mode c option:

    python main.py --mode c --cam <camera_number> --video "./"

    Use --cam only if you have multiple cameras connected.

    This will start capturing video from your camera, detect license plates, and recognize the plate numbers in real-time.

Output

The output will be an annotated video with detected license plates and recognized plate numbers. You can find the output video in the output directory.

Example

Example GIF

Acknowledgments

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contact

Fahad Soomro - [email protected]

alpr-pakistan's People

Contributors

fahad-h36 avatar

Stargazers

Abdul Manaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.