This is a fork from the openalpr main repo, corresponding to OpenAlpr v2.3.0. It has been modified to compile and run locally on a MacOSX Catalina and to produce a Linux build using a Docker build image, using OpenJDK v13 and v14 for the Java bindings.
For details about installation and general documentation on openalpr see the original openalpr repository
OpenAlpr is about the only available open source ALPR software around for free. Unfortunatley the project has fallen asleep and is not kept current. This goes for the Java and Javascript bindings especially.
This repo is the regular openalpr source, but the Java bindings have been fixed and updated to compile and work with Java 13. The main difference is how header files are generated.
A minor memory leak has also been fixed in the C++ code for the Java binding.
Pre requisites
brew install tesseract opencv@3 log4cplus brew cask install java
buildOpenAlprOnMacOSX.sh --> The alpr command line tool is now in src/build, along with various libraries
cd src/bindings/java ./clean.sh && ./make.sh && ./pack.sh && ./dist.sh && ./verify.sh
The folder dist
now contains the compiled java bindings and the required native libraries.
In the root folder, do
./buildImage.sh ./runImage.sh
See the following files
- src/bindings/java/src/Main.java
- src/bindings/java/src/com/openalpr/jni/Alpr.java
Rebuild using ./clean.sh && ./make.sh && ./pack.sh
in src/bindings/java
.
OpenALPR is an open source Automatic License Plate Recognition library written in C++ with bindings in C#, Java, Node.js, Go, and Python. The library analyzes images and video streams to identify license plates. The output is the text representation of any license plate characters.
Check out a live online demo here: http://www.openalpr.com/demo-image.html
Affero GPLv3 http://www.gnu.org/licenses/agpl-3.0.html
Commercial-friendly licensing available. Contact: [email protected]