人脸识别
参数说明,腾讯ai仅支持base64编码后的图片,并且最大为1m,但是当前package提供了三种调用方式
所有支持image参数的接口 均可以用此方式来传递image参数
// base64 code调用
$code = 'image base64 code';
$ai->face()->base64($code)->detect();
// 图片url
$url = 'http://domain.com/some.jpg';
$ai->face()->url($url)->detect();
// 本地文件路径
$path = 'path/to/some.jpg';
$ai->face()->path($path )->detect();名称
路由
参数
人脸检测与分析
detect
image,mode
多人脸检测
multiDetect
image
跨年龄人脸识别
crosssAge
source_image,target_image
五官定位
shape
image
人脸对比
compare
source_image,target_image
人脸验证
verify
image,person_id
人脸检测与分析
多人脸检测
跨年龄人脸识别
五官定位
人脸对比
人脸验证
Last updated
Was this helpful?