Object attribute display order problem.
AnsweredWe distinguish a person's top and bottom colors and transmit(using addAttribute method) them as metadata. In version 4.2, the metadata is displayed in the order it is sent, so in VMS, the top color is displayed above and the bottom color is displayed below.
In version 5.0 beta, the metadata is sorted alphabetically. We did some experiments, and we confirmed this. The problem is that when you sort alphabetically, the bottom color is displayed at the top and the top color is displayed at the bottom. This is contrary to human cognitive habits. There are also plans to send detailed characteristics of the detected object as metadata. We plan to write the main attributes first and the detailed attributes later. For example, Gender: Male, Top: white, Bottom: black, Hair: blonde, Sunglasses: no, Mask: on. If you sort this in alphabetical order, it will look ridiculous like Bottom: black, Gender: Male, Hair: blonde, Mask: on, Top: white, Sunglasses: no .
-
Hi Sergey,
I'm actually use following order code to add attributes.
auto attr = nx::sdk::makePtr<nx::sdk::Attribute>(nx::sdk::IAttribute::Type::string, "top color", topcolo);
objectMetadata->addAttribute(attr);
auto attr = nx::sdk::makePtr<nx::sdk::Attribute>(nx::sdk::IAttribute::Type::string, "bottom color", btmcolor);
objectMetadata->addAttribute(attr);And I got different results depending on VMS version.
Version:4.2.0.32842
Version:5.0.0.34326
I put attributes in the order with the intension. As you can see, the result in VMS 5.0 can cause confusion.
Please sign in to leave a comment.
Comments
5 comments