WIC/C ++:人员标记:无法设置人员标记元数据-重新发布 [英] WIC/C++: People Tagging: Unable to set the People Tagging metadata - Repost

查看:83
本文介绍了WIC/C ++:人员标记:无法设置人员标记元数据-重新发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用C ++,我试图通过设置PersonDisplayName属性来使用人员标记功能.我已经尝试过以下代码:

Hi,

Using C++, I''m trying to use the People Tagging feature by setting the PersonDisplayName property. I''ve tried this code:

Tools::Check(piFrameEncode->GetMetadataQueryWriter(&piFrameQWriter));
		
// Add additional metadata.
PROPVARIANT value;
PropVariantInit(&value);

value.vt = VT_LPWSTR;
value.pwszVal= L"Thomas LEBRUN";
		
Tools::Check(piFrameQWriter->SetMetadataByName(L"/xmp/<xmpstruct>MP:RegionInfo/<xmpbag>MPRI:Regions/PersonDisplayName", &value));



不幸的是,此代码引发了以下异常:其他信息:参数不正确."
如果更改元数据名称并尝试使用标题"属性,则一切正常.


有人看到我的错误在哪里吗?


谢谢!



Unfortunately, this code throws the follonwing exception: "Additional information: The parameter is incorrect."
If I change the metadata name and tried to use the "Title" property, all works fine.


Anyone see where is my error ?


Thanks!

推荐答案

您已经发布了此问题
You already posted this question here[^]; please use one forum only per question.


这篇关于WIC/C ++:人员标记:无法设置人员标记元数据-重新发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆