keshunchen / baiduocr by keshunchen

Baidu OCR API for Laravel
368
1
0
Package Data
Maintainer Username: keshunchen
Maintainer Contact: keshunchen@qq.com (keshunchen)
Package Create Date: 2017-09-01
Package Last Update: 2019-04-03
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-08 03:04:22
Package Statistics
Total Downloads: 368
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 1
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

百度文字识别

百度文字识别API在Laravel5中的简单封装,具体API使用详情参见百度文字识别API

Install

直接在composer.json中添加"keshunchen/baiduocr": "~1.0" 或者直接composer require "keshunchen/baiduocr"

For laravel5:

1.安装该插件

2.在config/app.php文件内添加

    'providers' => [
        Keshunchen\Baiduocr\BaiduocrServiceProvider::class,
    ],
    
    'aliases' => [
        'Baiduocr' => Keshunchen\Baiduocr\BaiduocrFacade::class,
    ],

3. 配置文件

    php artisan vendor:publish

修改config/baiduocr.php配置百度API参数

4. 使用

    \Baiduocr::idcard($image, $isFront, $options);

License

MIT