定制 shababsoftwares/ocr-text-extractor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shababsoftwares/ocr-text-extractor

最新稳定版本:v1.0

Composer 安装命令:

composer create-project shababsoftwares/ocr-text-extractor

包简介

This is a simple php project using Tesseract to extract text from any image.

README 文档

README

Downloads License

This is simple PHP Code using Tesseract-OCR to read and extract Text in any Image.

Installation

First, install the package through Composer.

composer create-project shababsoftwares/ocr-text-extractor

How to Install Tesseract-OCR

You need to have Tesseract-OCR installed and set Environment.

On Window 10,11

Installation guide on this link How to install tesseract ocr on window

Install Tesseract-OCR Edit Path under Environment System variables add new path %InstalationPath%/Tesseract-OCR like C:\Program Files (x86)\Tesseract-OCR

Add New Variable under System variables Variable Name: TESSDATA_PREFIX Variable Value: %InstalledPath%/Tesseract-OCR // C:\Program Files (x86)\Tesseract-OCR\

On Linux / ubuntu

Step 1 : Update your system Begin the installation process by updating the APT Index.

    sudo apt update

Step 2 : Add Tesseract OCR 5 PPA to your system. To add the Tesseract OCR 5 PPA to your system, run the command below

    sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel

Step 3 : Install Tesseract on Ubuntu Run the command :

    sudo apt install -y tesseract-ocr

Once installation is complete update your system

    sudo apt update 

Confirm the Tesseract version installed.

    $ tesseract --version

Set Path of Image and Output text file.

shell_exec('"C:\\Program Files (x86)\\Tesseract-OCR\\tesseract" "C:\\xampp\\htdocs\\OCR-Text-Recognition\\images\\'.$file_name.'" out');

License

The MIT License (MIT). Please see LICENSE for more information.

Shabab Softwares

www.shababsoftwares.com

Shabab Softwares (c) 2024

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-19