qbil-software / abbyy-cloud
与ABBYY云OCR通信的接口
v1.0.1
2018-01-27 20:23 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 4.8.6
This package is auto-updated.
Last update: 2024-08-29 03:47:30 UTC
README
与ABBYY云OCR通信的接口
使用方法
首先,您需要在ABBYY Cloud上注册:https://cloud.ocrsdk.com/Account/Register
1. 初始化
use QbilSoftware\AbbyyCloud\AbbyyClient; $abbyy = new AbbyyClient('my app name', 'my-app-key');
2. 提交图像(并等待一段时间)
$imagePath = '/absolute/path/to-image.jpg'; $text = $abbyy->performOcr($imagePath);
3. 结果!
echo $text;