Can I display colors as icon in the Objects panel?
AnsweredI am developing a plugin that receives metadata from an AI camera and displays it in Nx Meta VMS.
Currently, I am receiving metadata in YUV values.
I would like to represent the colors as icons, as shown in the image above.
I would appreciate it if you could let me know how to do this.
If it's not possible, I would appreciate it if you could tell me a good way to represent colors.
Thank you.
-
Hi Kyj,
Right now, any detected object shown on the object panel can be displayed with attribute "Color".If you want to achieve the goal, please make sure the color code(value) in RGB.
According taxonomy documentation the color type is described like this:
### Color types
This JSON object describes a Color type which can be used as a type of an Attribute.
It has the following fields:
-"id"
,"name"
,"base"
,"baseItems"
: Similar to the same-name fields of an Enum type.
-"items"
: List<Object> List of color values. Each item is a JSON object with the following fields:
-"name"
: Name (String) Full name of the color value, in English. Will be shown to the user.
-"rgb"
: RGB in HEX format (String) The associated RGB value used for this color representation in the UI, for example, when the user is presented a palette to choose from when searching.
This RGB value is not intended to have any direct connection to the color or a real-life object detected on the camera.
But It is assumed that Plugins detect colors approximately, and the attribute value is more of a major color class (like the ones defined in natural languages when we talk about a "black car" or a "red car") rather than an exact color value extracted from the video frame. May look like"#FF00FF"
.Hope this helps, thanks.
0
Please sign in to leave a comment.
Comments
1 comment