Can we overlay the bounding boxes on the live video with TriggerAnalyticsEventXML sample?

I’m trying TriggerAnalyticsEventXML on GitHub.

Triggering AnalyticsEvent is working and the bounding box is displayed on the playback video of alarm manger menu.

But the bounding box is not displayed on the live video.

Is it not possible to overlay bounding box with this TriggerAnalyticsEventXML sample?

According to the following YouTube video, it seems possible.

I would like to know how to overlay bounding box on the live video like this YouTube.

https://www.youtube.com/watch?v=1TsRGHnm8lw

By default, the Analytics Events you submit are only visible in the Alarm Preview. However, you can use a Smart Client plug-in to make the bounding box overlay visible in regular camera views, both in live and playback modes. This functionality can be easily tested using the provided plugin sample. Please refer to the Smart Client Overlay Graph on Event plugin sample.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scoverlaygraphonevent/readme.html&tree=tree_1.html

On the linked documentation that describes the sample it is mentioned that you can test by using the AnalyticsEventTriggerViaLibrary sample, I can tell you it works just as fine if you use the TriggerAnalyticsEventXML sample. (Or, when you have developed it, your own integration based on either of the samples).

Please note that bounding boxes on live (and playback) video can also be obtained by using metadata. Read more and see the samples here: https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_metadata.html

As a rule of thumb, you’ll use

  • Analytics Events in the more special and less frequent cases when an “event” has happened, and you want to process it with Rules or Alarms
  • Metadata when information is streamed more continuously, potentially pr. video frame, like having bounding boxes following a car or person in motion

On that note…

https://developer.milestonesys.com/s/article/Data-from-Analytics-how-to-best-implement-a-solution