Skip to content

keshunchen/baiduocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

百度文字识别

百度文字识别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

About

Baidu OCR API for Laravel5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages