TagGroupGetTagType返回错误的类型 [英] TagGroupGetTagType returns wrong type
问题描述
基本上,这是我无法解决的我的旧问题的特定问题.
Basically this is the specific question for my older question which I just can't solve.
为我的开发提供了示例图像.该图像包含(我想代表)TagGrop
,该图像显示有关如何创建图像的信息.
I was given an example image for my development. This image contains a (I guess representative) TagGrop
that displays the information about how the image is created.
我的问题是,此TagGroup
元素的TagGroupGetTagType()
对于本身为TagGroups
的元素返回3
.但是TagGroups
具有类型0
(由我本人和@BmyGuest在链接的问题中确认).下图显示了示例脚本的输出以及标签编辑器对话框.可以看到,每个元素的类型都是3,包括TagGroups
(例如 Acquision )或其他元素.
My problem is, that TagGroupGetTagType()
of the elements of this TagGroup
returns 3
for elements that are TagGroups
itself. But TagGroups
have the type 0
(confirmed by myself and @BmyGuest in the linked question). The following image shows the output of my example script together with the tag editor dialog. As one can see that every element has the type 3, including TagGroups
like Acquision or others.
上面的图像是使用以下脚本创建的:
The image above has been created with the following script:
clearResults();
image img;
img.GetFrontImage();
TagGroup tg = img.ImageGetTagGroup();
TagGroupOpenBrowserWindow(tg, 0);
for(number i = 0; i < tg.TagGroupCountTags(); i++){
String label = tg.TagGroupGetTagLabel(i);
number type = tg.TagGroupGetTagType(i, 0);
result("Index " + label + " has type " + type + "\n");
}
我做错了什么?为什么这不起作用?有什么方法可以获取正确的类型?
What am I doing wrong? Why does this not work? Is there any way to get the correct type?
这可能与文件有关,因此我创建了一个示例文件,该文件缺少某些索引(以保护给我此文件的人员的隐私).实际上,发布的输出是使用此文件创建的.因此,同样的问题也会发生.可以从 https://www.file-upload下载该文件. net/download-14020685/example.dm4.html .
This may be related to the file so I created an example file which is missing some of the indices (for protecting the privacy of the people who gave me this file). The posted output is in fact created with this file. So the same problem occurres. This file can be downloaded from https://www.file-upload.net/download-14020685/example.dm4.html.