Sending continuous analytic events.

I am sending analytic events as xml to the event server,

then i am reading them with my plugin at the smart client and print an overlay.

The analytic events contain “start_time” and “end_time” fields, but i can’t find any place that use this information.

I would like to send an analytic event that follow a person, what the right approach to do that?

should i send 1 analytic event with list of objects that define the person location over time?

object_1: time_start=13:00, time_end=13:01 boundingBox=…

object_2: time_start=13:01, time_end=13:02 boundingBox=…

if i send it in that format, how can i link the objects together? How can i tell that objects 1-5 are the same person?

I can see there is an object_id, should i give them same object_id? or is it unique?

What you are describing fits so much better with the metadata support. In general analytics event is for infrequent events where metadata uses the media database so it is prepared to have data for each frame of video or similar.

Please have a look at metadata support in XProtect

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/metadata_integrations.html&tree=tree_4.html

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_metadata.html&tree=tree_4.html

but is not metadata permanent?

i need the ability to watch the playback with, without and with part of the overlays.

Permanent? The metadata stay present but is tied to a timestamp and in this regard it is much like analytics events.

What metadata has, which analytics events does not, is that there is built-in functionality to show metadata of bounding box format automatically on top the video in the Smart Client. This works in live and in playback, in playback the timestamp controls when it shows.

You will by developing a Smart client plugin be able to control when to show your metadata in the Smart Client.

i use analytic events because i need the ability to filter by event type.

Let’s say i use metadata to draw 2 bounding boxes at 13:00.

Can i go back in playback to 13:00 and watch it without the bounding boxes?

Can i watch it with only 1 of the boxes?

The built-in functionality will always show all bounding boxes. You will be able to develop a plugin to overwrite the default functionality, then you will be able to filter the metadata on criteria that you develop.