小白求助一下,百度的虚拟上装返回222201错误
nogve89131 发布于2021-05 浏览:808 回复:1
0
收藏

错误提示如下:

{"error_code":222201,"error_msg":"makeup transfer fail","log_id":3525354525157,"timestamp":1620966788,"cached":0,"result":null}

 

代码几乎是照搬示例代码:

root["source_image"]["image"] = strPic.c_str();
root["source_image"]["image_type"] = "BASE64";

root["reference_images"][0]["image"] = strDestPic.c_str();
root["reference_images"][0]["image_type"] = "BASE64";

root["reference_images"][1]["image"] = strDestPic.c_str();
root["reference_images"][1]["image_type"] = "BASE64";

CJson2String theJ2S;
string strRoot = theJ2S.JsonValue2String(&root,false);

string strResult;
SendRequestParket(strUrl, strRoot.c_str(), strResult);

 

如上代码,人脸关键点可以正常获取,就是这个虚拟上妆 一直提示222201错误,求大神指点一下,问题在哪? 

收藏
点赞
0
个赞
共1条回复 最后由ghjgfghghg回复于2022-12
Y
#2yffanshen回复于2021-05

多次尝试还是报错,就提交工单问下看看。

0
TOP
切换版块