I know I can use the Metadata Provider in my application to send a bounding box or GPS metadata.
However, I would like to know if there is a way for my application to send user-defined metadata (eg arrows, polygons, etc.) to the XProtect server and display it in the video window of the Smart Client. I also want to know if I can display it during playback.
Thank you.
In the Metadata Provider with Multiple Channels sample there is a channel with a custom type, so here you can see how to make and send user-defined metadata.
The Smart Client has a built-in understanding of bounding box metadata so these are displayed. When it comes to other forms of metadata you would have to develop a plugin that can present the data as video overlay or in other ways.
The Smart Client Overlay Graph on Event is the plugin sample that comes closest in showing this, it only works in live mode an on analytics events instead of metadata but it could be used as a foundation for the plugin you want.
How to extract the metadata is shown in the Metadata Live Viewer
and Metadata Playback Viewer samples.
Hi Bo,
We developed a plugin for custom metadata. Is it possible to instruct the client somehow to prefer the custom metadata to the bounding box metadata?
That is:
Thanks
The Smart Client will with its built-in functionality recognize and display bounding boxes. If you want to have the Smart Client display (as overlay) other types of data you will have to develop a Smart Client plugin to do the overlay.
Now, assuming your plugin runs in the Smart Client it can control whether the regular bounding boxes are displayed by use of -
-–
VideoOS.Platform.Client.ImageViewerAddOn Class Reference
-
virtual bool VideoOS.Platform.Client.ImageViewerAddOn.ShowMetadataOverlay [get, set]
Tells is the built-in metadata overlay is shown.
Set this to false, if you have another overlay handling and display.
Note: Implemented in the Smart Client.