Hello all,
I integrated with Milestone and I receive the Events Analytics from Ganetec. But I don’t know how get the snapshot(image) of FaceRecognition. It’s possible in Alarm get the snapshot ??
Thanks for your attention best Regards Luis Oliveira
Hello all,
I integrated with Milestone and I receive the Events Analytics from Ganetec. But I don’t know how get the snapshot(image) of FaceRecognition. It’s possible in Alarm get the snapshot ??
Thanks for your attention best Regards Luis Oliveira
When reading an Alarm based on an AnalyticsEvent you can get the snap shot from
VideoOS.Platform.Data.SnapshotList SnapshotList [get, set]
--
The SnapshotList, containing any number of images related to the alarm. If the Source is a camera, it is not neccesary to attach a snapshot from that camera at the time of the alarm.
--
This is a list of Snapshot see VideoOS.Platform.Data.Snapshot Class Reference
The AlarmViewer sample shows how to read AlarmLines and Alarm, you could extend it to display the SnapshotList[0]. This could be an easy start and test before implementing the same in your integration.
Thanks for your answer,
I receive the alarm from Camera and I make this
private object NewAlarmMessageHandler(VideoOS.Platform.Messaging.Message message, FQID dest, FQID source)
{
Alarm alarm = message.Data as Alarm;
}
but the SnapshotList is null you can show me more code about the get the Snapshot from Alarm analytics ?
Best Regards Luis Oliveira
Most video analytics integrations does not make a snapshot. (I have no knowledge availble if Ganetec does or does not.) Usually you use the camera and time information of the alarm and simply retrieve the camera image from the time of alarm. There are methods to easily get the camera image in the MIP SDK.
I imagine using JPEGVideoSource and Get (DateTime dateTime) or GetNearest (DateTime dateTime) will be the best choice.
Note for people not working with MIP SDK; the Smart Client will if you click on an alarm in an alarm list display the image from the camera in an alarm preview, it will not show the snapshot (even if there is one stored on the alarm from the analytics event). (It is on out wishlist for future Smart Clients to display the snapshot in the alarm preview view-item.)