本文介绍了我如何使用API创建人员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Face ++ api将图像放到他们的网站上以用作网络服务。我面临的问题是在cmd中运行时可以显示所有面部属性,但是当我尝试创建具有特定face_id的人时,它会一直给我一个错误,如下所示。
I am trying to use Face++ api to put image onto their site to be used as a webservice. The problem I am facing is all the face properties can be shown when running in cmd but when I try to create the persons with specific face_id it keeps giving me an error as shown below.
<pre lang="xml">"error": "INVALID_ARGUMENTS: face_id does not exist",
"error_code": 1005
我的代码中是否有任何遗漏?这是创建人员以及触发错误的代码。
Is there anything missing in my codes? This are the codes where the person will be created and where the error is triggered.
for name, face in FACES.iteritems():
rst = api.person.create(
person_name = name, face_id = face['face'][0]['face_id'])
print_result('create person {}'.format(name), rst)
如果有人有任何解决方案或建议,请帮忙。
If anyone has any solution or advice,please help.
推荐答案
这篇关于我如何使用API创建人员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!