Skip to main content

OpenALPR Python Bindings

Project description

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

Project details


Download files

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

Source Distribution

openalpr-1.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

openalpr-1.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file openalpr-1.1.0.tar.gz.

File metadata

  • Download URL: openalpr-1.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for openalpr-1.1.0.tar.gz
Algorithm Hash digest
SHA256 36f929e184e17f983ee51fbe250f3f7d50332d67df59a50dbca2331a1315d84a
MD5 587a919ddd8e960f8b51fbdba13a62cd
BLAKE2b-256 6558cb0352e3c282e40a97620f90b2107f9968074f98afb2bd6cd0aa56842d0e

See more details on using hashes here.

File details

Details for the file openalpr-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: openalpr-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for openalpr-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66a9a79929f436e7e06fba28e15c9bed136c74dceda345eb5d89d19692dc9340
MD5 c42e9b5a58a6c34ff097c3d3aa798608
BLAKE2b-256 32f1b7083356f03d27839dd8ddcfa00d0db6fa0d65586c93cb394b8ecb3f069c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page