ai
  • 简介
  • 百度AI
    • 人脸识别
      • 人脸库管理
      • 人脸检测
      • 人脸搜索
      • 人脸对比
      • 身份验证
    • OCR文字识别
    • 图像识别
    • 人体分析
    • nlp自然语言
  • 腾讯AI
    • OCR文字识别
    • 人脸识别
      • 人脸库管理
    • 图片特效
    • 图片识别
    • 敏感信息审核
    • 智能闲聊
    • 机器翻译
    • 基础文本分析
    • 语义解析
    • 语音识别
    • 语音合成
Powered by GitBook
On this page
  • 获取ai实例
  • 选择网关
  • 调用路由

Was this helpful?

腾讯AI

获取ai实例

use Crisen\AI\Ai;

.....

$config = [
     'app_id' => 'your appid',
      'app_key' => 'your secret id',
];

$ai = AI::tencent($config);

特别说明 在后面的文章出现的$ai变量 如果没有特别说明 均为当前实例

选择网关

//人脸识别
$gateway = $ai->face();
// 人脸库管理
$gateway = $ai->faceset();

调用路由

$res = $gateway->detect([
    'image' => 'some base 64 code'
]);

$res = $gateway->base64('some base 64 code')->detect();
Previousnlp自然语言NextOCR文字识别

Last updated 6 years ago

Was this helpful?