bkremenovic/licenceplate

Licence plate recognition for Laravel 5

dev-master 2017-02-17 11:18 UTC

This package is auto-updated.

Last update: 2024-04-05 23:49:53 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")