bkremenovic/licenceplate
Licence plate recognition for Laravel 5
61
| Install | |
|---|---|
composer require bkremenovic/licenceplate |
|
| License: | MIT |
| Last Updated: | Feb 17, 2017 |
| Links: | GitHub · Packagist |
Maintainer: bkremenovic
Installation
Install dependencies:
sudo apt-get update && sudo apt-get install -y openalpr openalpr-daemon openalpr-utils libopenalpr-dev tesseract-ocr
Include a package into your project using composer:
composer require bkremenovic/licenceplate dev-master
Open your config/app.php and add the following to the providers array:
Bkremenovic\Licenceplate\LicenceplateServiceProvider::class,
In the same config/app.php and add the following to the aliases array:
'Licenceplate' => Bkremenovic\Licenceplate\Facades\Licenceplate::class,
Run the command below to publish the package config file config/licenceplate.php:
php artisan vendor:publish --provider="Bkremenovic\Licenceplate\LicenceplateServiceProvider"
Usage
Use recognize() method using an image as a parameter (either remote or local).
If the licence plate has been successfully recognized, it will return a string containing your licence plate. Otherwise, it will return null.
Example:
Licenceplate::recognize("licence.jpg")
or
Licenceplate::recognize("http://example.com/licence.jpg")