ddeboer/tesseract 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ddeboer/tesseract

最新稳定版本:1.1

Composer 安装命令:

composer require ddeboer/tesseract

包简介

A wrapper for the Tesseract OCR engine

README 文档

README

Build Status

Tesseract: a wrapper for the Tesseract OCR engine

A small PHP >=5.3 library that makes working with the open source Tesseract OCR engine easier.

Installation

You need a working Tesseract installation. For more information about installation and adding language support, see Tesseract’s README.

Then install this library, which is available on Packagist, through Composer:

$ composer require ddeboer/tesseract:1.0 

Usage

If the tesseract binary is in your path, just do:

use Ddeboer\Tesseract\Tesseract; $tesseract = new Tesseract();

Otherwise, construct Tesseract with the path to the binary:

$tesseract = new Tesseract('/usr/local/bin/tesseract');

Get version and supported languages information:

$version = $tesseract->getVersion(); $languages = $tesseract->getSupportedLanguages();

Perform OCR on an image file:

$text = $tesseract->recognize('myfile.tif');

Optionally, specify the language(s) as second argument:

$text = $tesseract->recognize('myfile.tif', array('nld', 'eng'));

And specify Tesseract’s page seg mode as third argument:

$text = $tesseract->recognize('myfile.tif', null, Tesseract::PAGE_SEG_MODE_AUTOMATIC_OSD);

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 6
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固