Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract

Overview

Latest Stable Version License Total Downloads Latest Unstable Version

LaraOCR

Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract under the hood.

Features

  1. Read text from image using WebUI/Programing Interface
  2. Can be used as Laravel Facade
  3. Configurable and extendable

Requirements

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.

Installation

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!

Usages

This package can be used to read text from image to text using different type of interface like Web and Programming.

Programming

From anywhere of your code you can simply access the OCR facade to scan image as below:

\OCR::scan($imagePath);
WebUI

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.

select_image

Upload Image

selected_image

Uploaded Image

output

Parsed text

Wish list

  • Artisan command to read image and show parsed text from CLI
  • Restful API to accept image and return parsed text
  • Multilingual support
  • Adding More options which are already available in OCR engines

Contribution

Anyone is always welcome to contribute on the project. If you want to work with:

  1. Just create and issue(even if you want to fix the issue).
  2. After fixing any issue or adding any new feature just send a pull request
  3. I will be happy to add your code for the betterment of this project. Thanks..

License

This package is licensed under Apache License, Version 2.0

Comments
  • The brick on the F5 key hangs the PHP subsystem (fpm)

    The brick on the F5 key hangs the PHP subsystem (fpm)

    If you look at processes from root or user via top or htop, you can see that php-fpm is running the tesseract at 100% CPU resources, and the more the more the load is. Just unfolding fractal of some kind.

    The solution is to create either a "busy" .lock file or use a queue.

    I recommend the .lock file because it is easy to implement and fast to scale.

    Thank you for LaraOCR !

    opened by h-zone 4
  • Dev Further improved new language parameter

    Dev Further improved new language parameter

    Fixes # .

    Changes proposed in this pull request:

    • using config file for default language setting
    • implemented function supportedLanguages
    • implemented function languageSupported to check if configured language is supported @alimranahmed
    opened by Henning256 2
  • Pass language parameter to tesseract

    Pass language parameter to tesseract

    It would be great, if it was possible to pass the -l (language) parameter to the call of tesseract. Using the right language when parsing a document with tesseract improves the result in most cases very much!

    opened by Henning256 2
  • I want to get only vin number from image?

    I want to get only vin number from image?

    I am uploading the image but I am not getting an exact text from that image?

    I am uploading the below image: images

    and getting blow Parse text: HED. IN JAPAN BY HONDA MOTOR CO. LTD: GVWR 4320.88 GAWR F 2160L8S R 2250.85 THIS VEHIGLE CONFORMS TO ALL APPLICABLE FEDERAL MOTOR VEHICLE SAFETY AND THEET PREVENTION STANDARDS. IN EFFECT ON THE DATE OF MANUFACTURE SHOWN ABOVE: “it JHLRD77874C026456 IULUQ.Y UVLO

    Thanks

    opened by DalbirKaur 2
  • Composer require fails on non default namespace

    Composer require fails on non default namespace

    Composer require fails if you are not following the laravel recommended namespace convention

    In OcrController.php line 10:
    
      Class 'App\Http\Controllers\Controller' not found
    

    I don't have App as my namespace in this case the package is looking for

    App\Http\Controllers

    Laravel Version: 6.0

    opened by vbasky 1
  • How to detect spaces?

    How to detect spaces?

    I know this package is basic and not aimed to extract layout, but, when 'parsing' an order as image, I've shipment address and invoice address on two columns.

    I got only text, so I've not idea on how to separated the first column chars from the second ones.

    Is there a way to get at least tabs (\t) when there is a lot of space between texts? Tesseract should be able to reconstrcut at least a minimum the layout.

    opened by realtebo 1
  • Composer require fails on non-default laravel namespace

    Composer require fails on non-default laravel namespace

    Composer require fails if you are not following the laravel recommended namespace convention

    In OcrController.php line 10:
    
      Class 'App\Http\Controllers\Controller' not found
    

    I don't have App as my namespace in this case the package is looking for

    App\Http\Controllers

    opened by vbasky 0
Releases(1.2.0)
Owner
Al Imran Ahmed
A motivated programmer who believes that programming is an Art of logics.
Al Imran Ahmed
Extract colors from an image like a human would do.

ColorExtractor Extract colors from an image like a human would do. Install Via Composer $ composer require league/color-extractor:0.3.* Usage require

The League of Extraordinary Packages 1.2k Jan 1, 2023
Create material deisgn avatars for users just like Google Messager. It may not be unique but looks better than Identicon or Gravatar.

Material-Design-Avatars Create material deisgn avatars for users just like Google Messager. It may not be unique but looks better than Identicon or Gr

Canbin Lin 268 Sep 14, 2022
ColorExtractor: Extract colors from an image like a human would do

ColorExtractor Extract colors from an image like a human would do. Install Via Composer $ composer require league/color-extractor:0.3.* Usage require

The League of Extraordinary Packages 1.2k Jan 3, 2023
Auto Image & file upload, resize and crop for Laravel eloquent model using Intervention image

Laravel ImageUp The qcod/laravel-imageup is a trait which gives you auto upload, resize and crop for image feature with tons of customization. Install

QCode.in 708 Dec 22, 2022
This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.

Laravel FFMpeg This package provides an integration with FFmpeg for Laravel 6.0 and higher. Laravel's Filesystem handles the storage of the files. Fea

Protone Media 1.3k Jan 7, 2023
Create images with embedded text using advanced typography

Image with Text This class makes it super easy to render images with multiple, independently styled text blocks. You can control each text block's ali

New Media Campaigns 144 Sep 7, 2022
PHP Exif Library - library for reading and writing Exif headers in JPEG and TIFF files using PHP.

PEL: PHP Exif Library README file for PEL: PHP Exif Library. A library with support for reading and writing Exif headers in JPEG and TIFF images using

null 264 Dec 4, 2022
A library using PHP to generate QRCode from https://www.qrcode-monkey.com free

PHP Class Generate Free QRCode ?? A library using PHP to generate QRCode from https://www.qrcode-monkey.com free ✋ NOTE: Do not generate too many QRCo

Nguyen Truong Nguyen 53 Dec 28, 2022
Symfony Bundle to assist in imagine manipulation using the imagine library

LiipImagineBundle PHPUnit PHP-CS-Fixer Coverage Downloads Release This bundle provides an image manipulation abstraction toolkit for Symfony-based pro

Liip 1.6k Dec 30, 2022
Generate Avatars using Initials, Bears or Kittens

Avatary Simple avatar generator Explore the docs » View Demo · Report Bug · Request Feature Table of Contents About The Project Built With Getting Sta

Prettify Studio 33 Nov 30, 2022
Alternative image provider for fakerphp using picsum.photos

Fakerphp Picsum Images Introduction Alternative image provider for fakerphp using picsum.photos This package has been forked from mmo/faker-images for

Arnaud Becher 16 Dec 9, 2022
Laravel Package for making thumbnails instantly

Laravel Thumbnail Generator Package for uploading the image and saving that image along with it's thumbnail. What does it do ? Uploads Image Make its

DRH2SO4 50 Dec 5, 2022
Picasso is a Laravel Image Management and Optimization Package

Picasso is a Laravel Image Management and Optimization Package. Define image dimensions and options, store uploaded image in multiple dimensions with or without a watermark and retrieve optimized images on your website when needed.

Laravelista 82 Nov 24, 2022
A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

Gravatar for Laravel 5.x, 6, 7 and 8 Installation First, pull in the package through Composer via the command line: composer require creativeorange/gr

Creativeorange 477 Dec 1, 2022
Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

Laravel ZATCA E-invoicing Introduction Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing Installation To get the la

Ayman Alaiwah 8 Aug 17, 2022
An unofficial package maintained by Salla to help developers to implement ZATCA (Fatoora) QR code easily which required for e-invoicing

ZATCA (Fatoora) QR-Code Implementation An unofficial package maintained by Salla to help developers to implement ZATCA (Fatoora) QR code easily which

Salla 96 Dec 25, 2022
Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS

Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS that gives to the users the ability to create or edit their own profiles (including profile image and description), upload images and share them among friends

null 0 Jul 24, 2021
Laravel Qcloud Content Security T-Sec 腾讯云内容安全(文字图片内容审核)服务

Laravel Qcloud Content Security T-Sec 天御内容安全服务使用了深度学习技术,识别文本/图片中出现的可能令人反感、不安全或不适宜内容,支持用户配置词库/图片黑名单,识别自定义的识别类型。

安正超 34 Jun 20, 2022
An open source image hosting service powered by Laravel

Limg An open source image hosting service powered by Laravel Features Upload your image via file, url or ShareX ! Manage your image (custom title, pub

Thomas 56 Dec 16, 2022