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
- Fork it ( https://github.com/zjwhitehead/alpr/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request