Dockerised OpenALPR for polling URLs - with additional image preprocessing
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
test_files
.travis.yml
Dockerfile
README.md
test.sh

README.md

OpenALPR Docker Image Build Status

Example usages

The following examples show how to use OpenALPR's prewarp configuration generated by the 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 utility. Further information on the value can be found in OpenALPR's configuration file 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 (<x1,y1,x2,y2>=) and all license plates are combined into a single JSON response.