OpenALPR Python Bindings
Project description
Installation
-
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.
-
IMPORTANT: you cannot use this package without a product license. If you need an evaluation license, please request one here.
-
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
Built Distribution
Hashes for openalpr-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22701af36ff522e93f645864db59a75c40152ca8e2b4a5167008fca0257121a7 |
|
MD5 | 455e8e67193a9539c47ca1da8c44c427 |
|
BLAKE2b-256 | 2572cc785833192a2cdd2e6b142fd4673cb793b6ef333309b9ff760af18c8717 |