TOpenALPR is a Delphi binding for OpenALPR - Automatic License Plate Recognition library.
All examples were tested in Delphi 10.2 Tokyo Starter (32-bit). Microsoft Visual C++ 2015 Redistributable must be installed on the computer.
TOpenALPR requires build of main library that includes C binding. However latest release (2.3.0) does not export C functions, this functionality was implemented later.
- Download and unpack OpenALPR 2.3.0. Copy files:
- all files and sub-directories
openalpr_32\runtime_datatobin\runtime_data - all files and sub-directories
openalpr_32\samplestobin\samples openalpr_32\openalpr.conftobin\openalpr.confopenalpr_32\liblept170.dlltobin\liblept170.dllopenalpr_32\opencv_ffmpeg300.dlltobin\opencv_ffmpeg300.dllopenalpr_32\opencv_world300.dlltobin\opencv_world300.dllopenalpr_32directory can now be deleted
- all files and sub-directories
- Unpack lib\openalpr-master.zip. Copy
openalpr.dlltobin\openalpr.dll - Open and compile example project:
-
examples\delphi-console. Detect plates in image filesamples\eu-3.jpgand write to console output, similar toalpr.exethat is distributed with OpenALPR.
-
examples\delphi-vcl-image. Detect plates in JPG, PNG, BMP and GIF images.
Operates in three modes:- View image: View input image and output with detected plates.
- Draw detection mask: Press LMB to draw area to be detected, RMB to erase, MMB to erase whole area.
- Select ROI (Region of Interest): Select detection region (rectangle).
-
examples\delphi-vcl-video. Playsamples\eu-clip.mp4and detect plates. Requires Delphi-OpenCV.
OpenCV version 3.x should be enabled insource\OpenCV.inc(set{.$DEFINE DelphiOCVVersion_29}and{$DEFINE DelphiOCVVersion_30}) before compiling this example. Otherwise executable will search for OpenCV 2.x files but they are not present inbindirectory.
-
TOpenAlpr is licensed under the MIT license. For OpenALPR binaries and usage, follow the original license.
