参数没设置好
不好意思,我忘了设置最大人脸数,正常了。
我试了一下,直接在线调用API(postman),也是只返回一张人脸,v3 接口。
这个是你的程序控制的,并不是百度接口提供的
怎么设置多久检测一次啊
用的sdk
我现在设置的是每4秒检测一次,同时有2个人在摄像头前,只返回一个人脸
返回这个{ "error_code": 0, "error_msg": "SUCCESS", "log_id": 3256773696, "timestamp": 1528096032, "cached": 0, "result": { "face_num": 1, "face_list": [ { "face_token": "8c8b22e331ce6fe89ea20d24daccfb21", "location": { "left": 684.7195435, "top": 266.8347473, "width": 311, "height": 320, "rotation": 1 }, "face_probability": 1, "angle": { "yaw": -4.19380188, "pitch": 1.75243032, "roll": 1.599746704 }, "age": 35, "beauty": 41.2973938, "gender": { "type": "male", "probability": 0.9998697042 }, "quality": { "occlusion": { "left_eye": 0, "right_eye": 0, "nose": 0, "mouth": 0, "left_cheek": 0.00686695287, "right_cheek": 0.08327550441, "chin_contour": 0.02670807391 }, "blur": 1.801197686E-05, "illumination": 72, "completeness": 1 } } ] }}
var options = new Dictionary{ {"max_face_num", 2}, {"face_field", "age,qualities,beauty,gender,quality"} };
c#
什么语言?api还是sdk?你发送的参数又是什么呢?
参数没设置好
不好意思,我忘了设置最大人脸数,正常了。
我试了一下,直接在线调用API(postman),也是只返回一张人脸,v3 接口。
这个是你的程序控制的,并不是百度接口提供的
怎么设置多久检测一次啊
用的sdk
我现在设置的是每4秒检测一次,同时有2个人在摄像头前,只返回一个人脸
返回这个{
"error_code": 0,
"error_msg": "SUCCESS",
"log_id": 3256773696,
"timestamp": 1528096032,
"cached": 0,
"result": {
"face_num": 1,
"face_list": [
{
"face_token": "8c8b22e331ce6fe89ea20d24daccfb21",
"location": {
"left": 684.7195435,
"top": 266.8347473,
"width": 311,
"height": 320,
"rotation": 1
},
"face_probability": 1,
"angle": {
"yaw": -4.19380188,
"pitch": 1.75243032,
"roll": 1.599746704
},
"age": 35,
"beauty": 41.2973938,
"gender": {
"type": "male",
"probability": 0.9998697042
},
"quality": {
"occlusion": {
"left_eye": 0,
"right_eye": 0,
"nose": 0,
"mouth": 0,
"left_cheek": 0.00686695287,
"right_cheek": 0.08327550441,
"chin_contour": 0.02670807391
},
"blur": 1.801197686E-05,
"illumination": 72,
"completeness": 1
}
}
]
}
}
var options = new Dictionary{
{"max_face_num", 2},
{"face_field", "age,qualities,beauty,gender,quality"}
};
c#
什么语言?api还是sdk?你发送的参数又是什么呢?