Giter Site home page Giter Site logo

yolov8-detect-vietnamese-license-plates-and-characters's Introduction

Setup for project

  1. Install Python: https://www.python.org/
  2. Install Anaconda ( development environment): https://www.anaconda.com/download
  3. Run install file requirements.txt (by Terminal on Project) Content inside file “requirements.txt”:

pip install -r requirements.txt

ultralytics==8.2.28 opencv-python==4.10.0 easyocr==1.7.1 numpy==1.24.4 Pillow==10.3.0 imutils==0.5.4

  • ultralytics (The YOLO model is used to detect the location of objects in an image and return bounding boxes for each object)
  • opencv-python (OpenCV is used to read, process and display images)
  • easyocr (Use EasyOCR to read text on license plates)
  • numpy (Used for numerical computations and data handling related to image processing, including array operations, linear algebra, etc)
  • Pillow (Provides tools to open, manipulate, and save images, necessary for preprocessing images before license plate recognition)
  • imutils (Provides convenient functions for image processing tasks like resizing, rotating, cropping, and other transformations)

• Detection license_plate_recognition_symbols

Preprocess.py:

alt text

Start detection Color img :

alt text

Black and White:

alt text

Canny Edge Detection:

alt text

Find and Draw Contours:

alt text

Font text License plate Vietnamese:

text alt text

final_v0 (detect-character-by-model + final_result_by EASY OCR)

final_v1 (detect-character-by-model "character_detector.pt")

original_image: alt text

original_img got crop_detect: ( license_plate_detector.pt ) alt text

Image got detect and transform:

alt text

Final result:

alt text

Bonus:

  1. You can delete all img in \input_images_license_plate , and replace your img in folder File rename_img.py in folder \img_input_rename , replace you input _path and output_path to rename img to manage it (ex: 1.jpg , 2.jpg) 1.jpg

  2. text this file to clean up all output images folder

yolov8-detect-vietnamese-license-plates-and-characters's People

Contributors

magicxuantung 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.