定制 errogaht/yandex-ocr-php 二次开发

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

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

errogaht/yandex-ocr-php

Composer 安装命令:

composer require errogaht/yandex-ocr-php

包简介

Unofficial PHP client for Yandex-translate OCR

README 文档

README

Now its not working, yandex ban it, but if you want you can repair it and create pull request

Latest Version on Packagist Software License Build Status Total Downloads

Unofficial PHP package to get results from Yandex translate OCR

Features:

  • Upload image to Yandex Translate OCR and get response in PHP array
  • Convert response to plain text
  • Unit test
  • Daily build guarantee that package is work, if you see build badge above green - that's mean package work right now

Install

composer require errogaht/yandex-ocr-php

Usage

You can see test file:

// can pass optional arguments: $langFrom, $langTo, API $url
$client = new \Errogaht\YandexOCR\Client();

//tell path to recognizing file
$client->setFilePath(__DIR__ . '/1e741d3b-ba67-42e5-8229-f07a72072c96.png');

//get response from Yandex translate
$response = $client->request();

//convert response to plain text
$texter = new \Errogaht\YandexOCR\Response2Text($response);
$text = $texter->getText();

Contributing

Please see CONTRIBUTING for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固