根据sdk的php调用
$fileName = public_path()."public\\face\\13826522856-1.jpg";
$imgData = $this->imgBase64Encode($fileName);
//echo "base64=".$imgData."
";
$object = new AipFace($this->appId,$this->apiKey,$this->secretKey);
$result = $object->match(array($imgData));
var_dump($result);
返回如下:
array(6) { ["error_code"]=> int(222200) ["error_msg"]=> string(34) "request body should be json format" ["log_id"]=> int(535897925101) ["timestamp"]=> int(1586182650) ["cached"]=> int(0) ["result"]=> NULL }
怎么会提示这个错误呢,sdk是最新的啊
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块