bkremenovic / licenceplate
Licence plate recognition for Laravel 5
dev-master
2017-02-17 11:18 UTC
Requires
- illuminate/events: 5.1.*|5.2.*|5.3.*|5.4.*
- illuminate/session: 5.1.*|5.2.*|5.3.*|5.4.*
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*
- intervention/image: dev-master|~2,>=2.2.0
This package is auto-updated.
Last update: 2024-11-06 01:07:49 UTC
README
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")