Skip to content

Repository files navigation

License Plate Detector

This license plate detector is a technology demonstration of how to use ONNX under Linux.

Training

I annotated license plate images (4000+ jpeg files) and trained my model using YOLOv8 YOLOv26. It is quite convenient to use Yolo26 since I don't have to run Non-Maximum Supression.

  • Long plates
  • Square(ish) plates
  • Foreign plates

In order to load and use ONNX runtime under Linux:

  1. Download ONNX Runtime from: https://www.nuget.org/api/v2/package/Microsoft.ML.OnnxRuntime

  2. Extract it (it is basically a zip file) to a folder

  3. Go to runtimes/linux-x64/native

  4. Copy libonnxruntime.so to ./onnx/lib folder of your project

  5. ln -s libonnxruntime.so libonnxruntime.so.1

  6. Copy include files (recursively) to your project folder as well

    cp -r build/native/include/ ./onnx/

OpenCV2 folder name fix for Ubuntu 24.04

sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2

About

License plate recognition model consumer coded in C++ using YOLOv26

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages