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

Was this helpful?

  1. 百度AI
  2. 人脸识别

人脸搜索

人脸搜索

1:n识别搜索

// 以url图片进行搜索
$ai->face()->url('http://domain/some.jpg')->groupList('some_group')->search();
// 以base64编码在多个组中进行搜索
$ai->face()->base64('Y3Jpc2VuY2hvdQ==')->groupList([
    'group1','group2','group3'
])->search();
// 以本地图片路径进行搜索
$ai->face()->path('/path/to/some.jpg')->groupList('some_group')->search();

// 兼容官方可选参数
$ai->face()->path('/path/to/some.jpg')->groupList('some_group')->search([
    'quality_control'  => 'NONE',
    'liveness_control' => 'NONE',
    'user_id'          => 'some_user',
    'max_user_num'     => '1'
]);

m:n 搜索

// 以url图片进行搜索
$ai->face()->url('http://domain/some.jpg')->groupList('some_group')->multiSearch();
// 以base64编码在多个组中进行搜索
$ai->face()->base64('Y3Jpc2VuY2hvdQ==')->groupList([
    'group1','group2','group3'
])->search();
// 以本地图片路径进行搜索
$ai->face()->path('/path/to/some.jpg')->groupList('some_group')->search();

// 兼容官方可选参数
$ai->face()->path('/path/to/some.jpg')->groupList('some_group')->search([
    'max_face_num'     => '10',
    'match_threshold'  => '80',
    'quality_control'  => 'NONE',
    'liveness_control' => 'NONE',
    'max_user_num'          => '20',
]);
Previous人脸检测Next人脸对比

Last updated 6 years ago

Was this helpful?