Stars: 124
Forks: 37
Pull Requests: 12
Issues: 15
Watchers: 9
Last Updated: 2023-04-10 23:06:02
Laravel Optical Character Reader(OCR) package using ocr engines(Tesseract)
License: Apache License 2.0
Languages: PHP, Blade
Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract under the hood.
OCR Engine Tesseract should be install in the system(e.g. for ubuntu sudo apt-get install tesseract-ocr
). Follow Tesseract installation guide here. Make sure from the command line you have the tesseract
command available.
Execute the following command in your terminal while you are in the root directory of your Laravel project to install this package:
composer require alimranahmed/laraocr
Then, publish this package using php artisan vendor:publish
command
That's All!
This package can be used to read text from image to text using different type of interface like Web and Programming.
From anywhere of your code you can simply access the OCR
facade to scan image as below:
\OCR::scan($imagePath);
After successful installation of this package we already have a web interface to parse text from image. Simply go to {project-url}/ocr
, select your image then click the Parse Image
button.
Upload Image
Uploaded Image
Parsed text
Anyone is always welcome to contribute on the project. If you want to work with:
This package is licensed under Apache License, Version 2.0