https://github.com/sketchingdev/openalpr-docker
Dockerised OpenALPR for polling URLs - with additional image preprocessing
https://github.com/sketchingdev/openalpr-docker
alpr docker openalpr
Last synced: about 1 month ago
JSON representation
Dockerised OpenALPR for polling URLs - with additional image preprocessing
- Host: GitHub
- URL: https://github.com/sketchingdev/openalpr-docker
- Owner: SketchingDev
- Created: 2017-05-14T19:49:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T19:56:40.000Z (over 8 years ago)
- Last Synced: 2025-01-13T04:21:42.099Z (over 1 year ago)
- Topics: alpr, docker, openalpr
- Language: Python
- Size: 39.1 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenALPR Docker Image [](https://travis-ci.org/SketchingDev/OpenALPR-Docker)
## Example usages
The following examples show how to use OpenALPR's `prewarp` configuration generated by the [camera calibration](https://github.com/openalpr/openalpr/wiki/Camera-Calibration) utility. In the latter example this is combined with the ability to crop multiple regions of the image.
The license plates recognized after each preprocess rule are combined into a single JSON response.
**Poll URL for an image every 10 seconds**
```
docker run flyingtophat/alpr http://example.com/traffic_cam \
--interval 10 \
--verbose
```
**Pre-process each image retrieved from URL before recognition**
```
docker run flyingtophat/alpr http://example.com/traffic_cam \
--verbose \
--preprocess planar,429.000000,300.000000,-0.000000,0.000000,0.670000,1.000000,1.000000,0.000000,0.000000
```
*The rule passed in is the value generated by [OpenALPR's camera calibration](https://github.com/openalpr/openalpr/wiki/Camera-Calibration) utility. Further information on the value can
be found in [OpenALPR's configuration file](https://github.com/openalpr/openalpr/blob/ab1a9e20ab699fc5dec756acd44456f2d4b4c106/config/openalpr.conf.defaults) for the `prewarp` option*
**Pre-process cropped regions of the image retrieved from URL before recognition**
```
docker run flyingtophat/alpr http://example.com/traffic_cam \
--verbose \
--preprocess 0,0,435,299=planar,429.000000,300.000000,-0.000000,0.000000,0.670000,1.000000,1.000000,0.000000,0.000000 \
--preprocess 435,0,705,299=planar,272.000000,300.000000,-0.000000,0.000000,-0.650000,1.000000,1.000000,0.000000,0.000000
```
*In this example the prewarp rules are applied to their respective cropped area (=) and all license plates are combined into a single JSON response.*