I am building a video analytics application in Python on a Linux system.
We want to generate an AnalyticsEvent, that we send to the Event Server using the Protocol Integration, which we did by following the example on the developer docs.
We then want to query all the Analytics Events (or Generic Events) that have occurred in a region, time interval, or at a particular camera, to display them in an external report.
This has to be done from a Python application in a Linux environment.
Could you please point me to Protocol Integration examples to query the Events based on location, camera, time?
Please let me know if you need any other information.
The alarm list protocol sample shows how to use the API to get alarms: https://doc.developer.milestonesys.com/html/index.html?base=samples/alarmlist_sample.html&tree=tree_3.html
Events can be queried on the same API in a very similar way.
Thanks @Peter Posselt Vergmann (Milestone Systems) . I’m quite new to C# and find it hard to go through that code. Could you please point me to the place where the XML request is made, and suggest the changes required to query an AnalyticsEvent?
At line 353 of MainWindow.xaml.cs you have the call to GetAlarmLines, which calls into the auto-generated proxy (you should be able to find a proxy generating util for soap apis for Python I guess).
On the same class you will find e.g. GetEventLines which is used to get events.
Of course there is more to it than that as you will also need to log into the server in order to get a token. MainWindow.xaml.cs contains code for that as well.
Thank you, that helps a lot.