Can I use VideoOS.Platform.Metadata.Polygon or VideoOS.Platform.Metadata.Vector as metadata to draw a polygon or a line in Smart Client?

The BoundingBoxMetadataProvider example shows how bounding box metadata can be injected into an XProtect system, in which rectangles are displayed in Smart Client when the system is setup correctly. I wonder how line segments and polygons can be displayed in Smart Client? Can I use VideoOS.Platform.Metadata.Polygon or VideoOS.Platform.Metadata.Vector? If not, any suggestions on drawing lines and polygons by metadata?

First, please explore AnalyticsEventTriggerViaLibrary sample and see GetRectangle in MainForm.cs.

You will see that there are definitions of the color of the bounding box and form. You can change them as you want. https://doc.developer.milestonesys.com/html/index.html?base=samples/scoverlaygraphonevent.html&tree=tree_search.html?search=analyticseventtriggervialibrary

Second, please add an Analytics Events in Management Client and then please make an Alarm Definition in Management Client. You should configure that Trigger event should be the analytics Event that you create and select a camera.

Please run the AnalyticsEventTriggerViaLibrary sample and select a camera. Check-on “include overlay” checkbox and click Send analytics event button.

Open Smart Client and start recording the camera then go to Alarm Manager tab. When you change from the alarm-list to the event-list then you can see all the events from the sample application.

Click one of the events that you send via the sample, then you can see the bounding box( please don’t forget to record the camera) that you changed in the first step in the right upper view.

Hi Rie,

It’s a solution but I need to draw lines, polygons and even shapes far more complicated as an overlay to the live video stream​.

Any suggestions?

Thanks.

The Smart Client will unfortunately currently only support drawing of bounding boxes when it comes to metadata.

It is possible for you to develop a plugin that will enable overlay drawing based on other content in the metadata whereas the built-in support for metadata overlay drawing only works for bounding boxes.