Skip to content

zjwhitehead/alpr

Repository files navigation

Alpr Gem FOSSA Status

CircleCI

Tiny rubygem wrapping openALPR.

You'll need to install openALPR. I used brew update && brew install openalpr, on macOS.

For Linux see the official wiki

Installation

Requires Ruby version 2.3 or higher

Add this line to your application's Gemfile:

gem 'alpr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install alpr

Usage

search = Alpr.new("lc.jpg")
puts search.output

For USA license plates specify an optional state pattern (eg. Ohio = "oh" )

search = Alpr.new("lc.jpg", :us, "oh")
puts search.output

Contributing

  1. Fork it ( https://github.com/zjwhitehead/alpr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request