首页 版块 访问AI主站 注册 发帖
小呆萌F
14
积分 积分商城
0
获赞
人脸对比返回参数出错
Ta的回复 :获取Tonken成功! result:{"error_code":222208,"error_msg":"the number of image is incorrect","log_id":3759046821,"timestamp":1525781772,"cached":0,"result":null} {"error_code":222208,"error_msg":"the number of image is incorrect","log_id":3759046821,"timestamp":1525781772,"cached":0,"result":null}net.sf.json.JSONException: JSONObject["result"] is not a JSONArray. at net.sf.json.JSONObject.getJSONArray(JSONObject.java:2038) at com.itstar.action.FaceQuery.getFaceInfo(FaceQuery.java:57) at org.apache.jsp.data_jsp._jspService(data_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 等等很多不复制了 这是我写的程序代码运行后的结果,调用出错了,我用的还是base64去做的,我不是两张照片对比,而是摄像头拍的照与数据库存入的base64做比对,比对不成功,不知道是一开始认证没成功还是其他问题 把这个给你,希望你能帮助到我,API Key为QU6Aa4hXgLRjMiLX12f08O6V Secret Key为EPGTp2jCwHGypaaXzB580jhHDwu6jQuK   v3版本的,谢谢,呜呜呜呜~~~
19
人脸对比返回参数出错
Ta的回复 :获取Tonken成功! result:{"result":[{"index_i":"0","index_j":"1","score":98.083610534668}],"result_num":1,"log_id":3813206812050820} {"result":[{"index_i":"0","index_j":"1","score":98.083610534668}],"result_num":1,"log_id":3813206812050820} 这个是成功的时候返回的信息,用别人的v2版本实验,成功了,换成我的API Key和Secret Key就会失败,其他代码都没动,只换了API Key和Secret Key
19
人脸对比返回参数出错
Ta的回复 :发送这个时https://aip.baidubce.com/rest/2.0/face/v3/detect?access_token=24.179ff54983a332b325e16a78c3508900.2592000.1528376773.282335-11176595 返回这个错误 {"error_code":222001,"error_msg":"param[image] is null","log_id":4064810937,"timestamp":1525784830,"cached":0,"result":null} 啥错啊,有大神不
19
人脸对比返回参数出错
Ta的回复 :解释一下,我回复的不注意格式?在回复前,又做了好几次调试,所以看起来没有格式。我知道错误,但是调不了所以才求助,感谢朋友的回复。
19
切换版块
智能客服