bkremenovic / licenceplate by bkremenovic

Licence plate recognition for Laravel 5
61
0
1
Package Data
Maintainer Username: bkremenovic
Maintainer Contact: bkremenovic@croz.net (bkremenovic)
Package Create Date: 2017-02-14
Package Last Update: 2017-02-17
Language: PHP
License: MIT
Last Refreshed: 2024-04-14 15:02:17
Package Statistics
Total Downloads: 61
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

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")