定制 surpaimb/baidu-aip 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

surpaimb/baidu-aip

Composer 安装命令:

composer require surpaimb/baidu-aip

包简介

aip by baidu

README 文档

README

Baidu Aip 2.2.9

baidu-aip 用composer 封装了 aip-php-sdk(当前版本2.2.9)

🚀 5 minutes quick start for exports

💡 Require this package in the composer.json of your Laravel project. This will download the package and PhpSpreadsheet.

composer require surpaimb/baidu-aip

This should have created:

<?php

namespace App\Http\Controllers;

use Baidu\Aip\AipOcr;

class ExampleController extends Controller
{

    public $client;
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
        $this->client = new AipOcr(APP_ID, APP_KEY, SECRET_KEY);
    }

    //
    
    public function ocr($filename)
    {
        $image = file_get_contents($filename);
        $templateSign = null;
        $param = ['classifierId' => '1'];

        // 调用自定义模板文字识别
        return $this->client->custom($image, $templateSign ,$param);
    }
}

统计信息

  • 总下载量: 62
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固