Project

alpr

0.01
No release in over 3 years
Low commit activity in last 3 years
Ruby wrapper for openalpr
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
>= 0
>= 12.3.3
 Project Readme

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