代码如下:
IMAGE=`base64 $int.jpg`
curl -i -k "https://aip.baidubce.com/rest/2.0/face/v3/detect?access_token=$ACCESS_TOKEN" --data '{"image":"'$IMAGE'","image_type":"BASE64"}' -H 'Content-Type:application/json;charset=UTF-8'
调用api,返回:
{"error_code":222001,"error_msg":"param[image] is null","log_id":1368654455616862221,"timestamp":1555561686,"cached":0,"result":null}
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
这个接口报这个错是因为参数传递格式的问题,也可能是作为参数序列化的问题,根据具体的端查找下具体改法