Skip to main content

Installation

  1. Make sure your computer has the commercial engine installed. This can be achieved by installing either the OpenALPR Agent or the Commercial SDK. This ensures that the C code bound to this Python package is available on your system.

  2. IMPORTANT: you cannot use this package without a product license. If you need an evaluation license, please request one here.

  3. Install this Python binding: pip install openalpr

Example

Download and image of a car with the license plate visible, save to your computer, and run the following code:

import json
from openalpr import Alpr

alpr = Alpr("us", "/path/to/openalpr.conf", "/path/to/runtime_data")
if not alpr.is_loaded():
    print("Error loading OpenALPR")
    sys.exit(1)
results = alpr.recognize_file("/path/to/image.jpg")
print(json.dumps(results, indent=4))
alpr.unload()

On Linux systems, the default paths for files required to instantiate the Alpr class are

  • /etc/openalpr/openalpr.conf
  • /usr/share/openalpr/runtime_data

And on Windows systems

  • C:\OpenALPR\Agent\etc\openalpr\openalpr.conf
  • C:\OpenALPR\Agent\usr\share\openalpr\runtime_data

Release files for openalpr 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openalpr 1.1.0
File Size Uploaded
openalpr-1.1.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openalpr 1.1.0
File Interpreter ABI Platform
openalpr-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / openalpr-1.1.0.tar.gz

Download URL openalpr-1.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
36f929e184e17f983ee51fbe250f3f7d50332d67df59a50dbca2331a1315d84a
BLAKE2b-256 checksum
How to use checksums
6558cb0352e3c282e40a97620f90b2107f9968074f98afb2bd6cd0aa56842d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Release files / openalpr-1.1.0-py3-none-any.whl

Download URL openalpr-1.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66a9a79929f436e7e06fba28e15c9bed136c74dceda345eb5d89d19692dc9340
BLAKE2b-256 checksum
How to use checksums
32f1b7083356f03d27839dd8ddcfa00d0db6fa0d65586c93cb394b8ecb3f069c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page