public void SearchDemo() { var image = "取决于image_type参数,传入BASE64字符串或URL字符串或FACE_TOKEN字符串"; var imageType = "BASE64"; var groupIdList = "3,2"; // 调用人脸搜索,可能会抛出网络等异常,请使用try/catch捕获 var result = client.Search(image, imageType, groupIdList); Console.WriteLine(result); // 如果有可选参数 var options = new Dictionary{ {"quality_control", "NORMAL"}, {"liveness_control", "LOW"}, {"user_id", "233451"}, {"max_user_num", 3} }; // 带参数调用人脸搜索 result = client.Search(image, imageType, groupIdList, options); Console.WriteLine(result); }
返回是:
{
"error_code": 222001,
"error_msg": "param[group_id_list] is null",
"log_id": 2813308825,
"timestamp": 1526287711,
"cached": 0,
"result": null
}{
"error_code": 222001,
"error_msg": "param[group_id_list] is null",
"log_id": 2813308825,
"timestamp": 1526287711,
"cached": 0,
"result": null
}{
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
json解析要多看看啊,朋友
已经解析出来了。谢谢
标准json类型数据啊
这个返回的东西怎么解析出来呢
请问你Image改了吗?我跑过demo了没问题
能不能用代码控件填一下,这个起来好心累