Skip to content

ebadi/openalpr-plusplus

 
 

Repository files navigation

openalpr++

OpenALPR++ is fork of OpenALPR (Automatic License Plate Recognition) library. In addition to basic functionality provided by openalpr, openalpr++ provides few more internal and intermediate information as a json file.

User Guide

Please check OpenALPR repository for complete user manual.

alpr resources/eu-sweden-licenseplate.png -c eu --debug --config config/openalpr-plusplus.conf | grep JSON > resources/out.json 
cat resources/out.json | grep DEBUG1 > resources/1.json 
cat resources/out.json | grep DEBUG2 > resources/2.json 
sed -e s/DEBUG1_JSON://g -i resources/1.json
sed -e s/DEBUG2_JSON://g -i resources/2.json
firefox resources/1.json resources/2.json

Sample JSON outputs 1,2 for the following license plate from wikipedia:

This is an image

Compiling

Tested on Ubuntu 18.04:

sudo apt-get update
sudo apt-get install -y \
    build-essential \
    cmake \
    curl \
    git \
    libcurl3-dev \
    libleptonica-dev \
    liblog4cplus-dev \
    libopencv-dev \
    libtesseract-dev \
    wget

git clone https://github.com/ebadi/openalpr-plusplus.git
cd openalpr/src
mkdir build
cd build


cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc ..  ;
make -j4
sudo make install

in case of the following segfault : tesseract::LTRResultIterator::WordFontAttributes(bool*, bool*, bool*, bool*, bool*, bool*, int*, int*) const () from /usr/lib/x86_64-linux-gnu/libtesseract.so.4

sudo add-apt-repository ppa:alex-p/tesseract-ocr
sudo apt-get update
sudo apt-get upgrade

License

Affero GPLv3 http://www.gnu.org/licenses/agpl-3.0.html

About

Automatic License Plate Recognition library

Resources

License

Contributing

Stars

Watchers

Forks

Languages

  • C++ 77.9%
  • C 15.2%
  • Java 3.7%
  • C# 1.2%
  • CMake 1.0%
  • Python 0.5%
  • Other 0.5%