chedianai/tencent-ocr

腾讯 OCR SDK

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.8 2018-05-29 08:17 UTC

This package is not auto-updated.

Last update: 2020-01-10 17:18:04 UTC


README

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');