hachi-zzq / tencent-ocr

腾讯 OCR SDK,包括:车牌号识别、行驶证识别。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

腾讯云 OCR SDK

author:zhuzhengqianhachi.zzq@gmail.com

引入包


composer require hachi-zzq/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'     => 'app_id',
              // 腾讯的 app_secret_id
              'secret_id'  => 'secret_id',
              // 腾讯的 secret_key
              'secret_key' => 'secret_key',
              // 腾讯的 bucket
              'bucket'     => 'bucket',
              'response_type'=>'collection'
          ];
$application = new \Hachi\TencentOcr\Application($config);

//行驶证识别
$application->driver_license->ocr('http://sample.image.com');

//车牌号识别
$application->license_plate->ocr('http://sample.image.com');

About

腾讯 OCR SDK,包括:车牌号识别、行驶证识别。


Languages

Language:PHP 100.0%