Tools,

OpenALPR vs fast-alpr: 240 made-up plate pictures, tested

230 vs 82

read right: fast-alpr vs OpenALPR's Docker image

Run fast-alpr in 2 commands

fast-alpr read 230 of 240

80 made-up plates, US and EU style, each drawn 3 ways: clean, small and blurry, and on a car.

A made-up white plate that reads SAMPLE, CPK 4672, MADE UP PLATE
OpenALPR read CPK72. fast-alpr: CPK4672.
A drawn car rear with a made-up EU style plate, YW-456-SH
OpenALPR read YW456S. fast-alpr: YW456SH.
Pictures read right, of 240
Reader Right Wrong or none
fast-alpr 0.4.0 230 10
OpenALPR, 2018 Docker image 82 88, plus 70 crashes
OpenALPR master, with -p 136 104
Apple Vision, all text 231 9

Apple Vision is not a plate reader. It returns all the text, so I counted it right when the plate was in there.

Scores by picture type
Right, of 80 each: clean crop, small crop, on a car
Reader Clean, small, car
fast-alpr 80, 78, 72
OpenALPR, 2018 Docker image 27, 36, 19
OpenALPR master 39, 47, 30
OpenALPR master, with -p 46, 53, 37
Apple Vision 78, 76, 77
Tesseract 5.5.4 24, 6, 16

fast-alpr's OCR model alone, without its plate finder, read all 160 crops.

fast-alpr's 10 misses: 6 times O for Q, once G for C, once X for Y. Once it found no plate, and once its top box was not the plate.

OpenALPR 2.3.0 crashed on 70

The 2018 Docker image and Ubuntu's 2.3.0 package both stopped with a segmentation fault on the same 70 pictures, 65 of them EU style.

A fix for this crash went into master on July 30, 2020. No release has it: the last one, 2.3.0, is from July 2016. Built from master, OpenALPR crashed 0 times and read 116.

With -p (a plate pattern), it reads 136. The pattern turns a misread O back into 0. It fixed 1 dropped character, but it still read WEH8841 as EH88.

Its score swings with the font

I drew the same 80 plates again in a second free font, Roboto Bold. Roboto is wider, so its letters are drawn smaller to fit. fast-alpr barely moved. OpenALPR found no plate on most US ones.

Pictures read right, by font
Reader and plates Barlow Roboto
fast-alpr, all 240 230 228
OpenALPR master, 120 US 60 0
OpenALPR master, 120 EU 56 88

Real plates use other fonts again. Test any reader on pictures like yours before you trust its numbers, mine included.

Run fast-alpr in 2 commands

Python 3.10 or newer. car.jpg is your picture:

python3 -m venv alpr && alpr/bin/pip install "fast-alpr[onnx]"
alpr/bin/python -c 'from fast_alpr import ALPR; [print(r.ocr.text) for r in ALPR().predict("car.jpg")]'

It fetches its two models on the first run. On this Mac it took 0.05 s a picture, or 0.17 s on the CPU alone.

OpenALPR with the crash fix, in Docker:

docker build -t openalpr-master https://github.com/openalpr/openalpr.git#736ab0e608cf9b20d92f36a873bb1152240daa98
docker run --rm -v "$PWD:/data:ro" openalpr-master -c us -p pa car.jpg | grep -m1 "pattern_match: 1"

The build took under 2 minutes here. pa is Pennsylvania's pattern, 3 letters and 4 digits. For French style plates, use -c eu -p fr. OpenALPR took 0.009 s a picture.

Licenses: AGPL, MIT, and one unknown

What each part allows
Part License Note
OpenALPR AGPL-3.0 Its README offers a commercial license
fast-alpr code, OCR weights MIT The author says the weights are MIT too
fast-alpr plate finder weights None stated Trained with GPL-3.0 YOLOv9 code

AGPL-3.0: if you change OpenALPR and people use it over a network, you must offer them your source. For the plate finder, the author's advice, if in doubt, is to train your own.

Hosted plate readers and their prices

From their own pages on Nov 21. I did not test these:

Hosted plate reading
Service Free Paid from
Plate Recognizer 2,500 lookups a month, evaluation only $50 a month for 50,000
Rekor CarCheck, OpenALPR's cloud API 50 a month, card needed $40 a month

Our Actor reads scans, not plates

Our pdf-ocr Actor on the Apify Store turns scanned PDFs and images into Markdown or text. Its code read all 80 clean crops, at about 3 s each on this Mac. It has no plate finder, so I did not run it on the cars.

See the Actor

How I tested it
  • Plates: 80 made-up strings from a seeded random draw. US style is 3 letters and 4 digits, EU style is AB-123-CD (French order). No real plates.
  • Drawn with Pillow in Barlow Condensed SemiBold (OFL). Small crop: 120 px wide, tilted 4 degrees, blur, noise, JPEG quality 35. Car: the plate 170 to 260 px wide, turned in perspective.
  • OpenALPR 2.3.0: the 2018 Docker image (amd64, emulated on this Mac), Ubuntu 18.04's arm64 package, and master 736ab0e6, with -c us or -c eu. The Ubuntu package and the Docker image read the same on 239 of 240.
  • fast-alpr 0.4.0 with its default models (yolo-v9-t-384-license-plate-end2end, cct-xs-v2-global-model). Tesseract 5.5.4, English. Apple Vision on macOS 26.6, accurate, language correction on (off: 227).
  • Right means the top plate matches, letters and digits only. For Apple Vision, Tesseract and the Actor: the plate is somewhere in the text. Times are medians after the models load.
What I did not test
  • Real plates and photos: night, motion blur, steep angles.
  • Two-row plates, other countries, other fonts.
  • fast-alpr's larger models, OpenALPR's commercial version, and the hosted services.
Sources

Questions people ask

Is OpenALPR still maintained?

Not the open source version. Its last release, 2.3.0, is from July 2016, and its last commit to master, a crash fix, is from July 2020. Rekor still sells products under the OpenALPR name.

Is there a free alternative to OpenALPR?

fast-alpr installs with pip, and its code is MIT. On our 240 pictures of made-up plates, it read 230 right, against 82 for OpenALPR's Docker image. Its plate finder weights have no stated license.

Why does OpenALPR crash with a segmentation fault?

On our test, the 2.3.0 release crashed on 70 of 240 pictures, in its Docker image and in Ubuntu's package. A fix in master stopped every crash, but no release has it. Build master with the repo's own Dockerfile.