在认知Face API中将面孔添加到large_person_group_person时指定边界框 [英] specifying bounding boxes when adding faces to large_person_group_person in cognitive Face API
问题描述
我想做的是仅使用面部识别而不进行检测,因为我已经掌握了地面真相边界框信息.因此,我想使用自己的边界框信息将面孔添加到我的large_person_group_person中. 使用面部添加功能时,是否可以指定边框信息?或其他支持此功能的功能?
What I'm trying to do is to use only face recognition without detection because I already have ground truth bounding box information. So I want to add faces to my large_person_group_person with my own bounding box information. Is there a way to specify bounding box information when using face add function? or other functions that supports this?
下面的链接是面部添加功能的参考.
The link below is the reference of face add function.
自变量' target_face '用于在认知检测器检测到面部时选择面部.问题是有很多人脸未能被检测到.我要做的是指定边界框信息.
the argument 'target_face' in face add function is used for selecting the face when the face is detected by the cognitive detector. The problem is that there are a lot of faces failed to be detected. what I want to do is to specify bounding box information.
推荐答案
是的,您可以使用脸部边界框信息将脸部添加到大型人群中.您可以按照以下步骤操作: 这是我要上传的图片,我已将人脸边界框信息标记为:
Yes, you can use face bounding box information to add a face to your person in a large group. You can follow the steps below: This is my image about to upload, I have marked the face bounding box information out :
基于面部添加API,您的"tragetFace"值应为:left,top,width,height.在这种情况下,其值为315,178,53,53.因此,只需按如下所示调用API:
Based on the face add API, you the "tragetFace" value should be: left,top,width,height. In this case values 315,178,53,53 .So just call the API as below :
https://faceteststan.cognitiveservices.azure.com/face/v1.0/largepersongroups/testlargegroup/persons/e28981bd-1361-411a-b28a-eb79bc06ea51/persistedfaces?targetFace=315,178,53,53&detectionModel=detection_02
结果:
如您所见,已经成功添加了面孔.突出显示会根据您自己的需要修改API参数,在这里您可以满足自己的要求.
As you can see a face has been added successfully . Juts modify the API params based on your own and your own requirement will be ok here.
顺便说一句,请注意,如果未从面部-检测"中返回提供的"targetFace"矩形,则不能保证成功检测和添加面部.
Btw, pls note that if the provided "targetFace" rectangle is not returned from Face - Detect, there’s no guarantee to detect and add the face successfully.
希望有帮助.
这篇关于在认知Face API中将面孔添加到large_person_group_person时指定边界框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!