Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

OpenALPR Python Bindings

Project description


  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


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")
results = alpr.recognize_file("/path/to/image.jpg")
print(json.dumps(results, indent=4))

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for openalpr, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size openalpr-1.1.0-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size openalpr-1.1.0.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page