腾讯云 OCR SDK
author:zhuzhengqianhachi.zzq@gmail.com
引入包
composer require chedianai/tencent-ocr
配置文件
<?php
return [
'app_id' => 'app_id',
'secret_id' => 'secret_id',
'secret_key' => 'secret_key',
'bucket' => 'bucket',
'response_type'=>'collection'
];
使用示例
<?php
$config = [
'app_id' => 'app_id',
'secret_id' => 'secret_id',
'secret_key' => 'secret_key',
'bucket' => 'bucket',
'response_type'=>'collection'
];
$application = new \Hachi\TencentOcr\Application($config);
//行驶证识别
$application->driver_license->ocr('http://www');
//车牌号识别
$application->license_plate->ocr('http://xxx');