Sending an Alarm + Images to Milestone alarm Manager

I am integrating a third party face recognition software with Milestone. The cropped face image identified through the face recognition software need to be shown at Alarm panel in Alarm Manager. I am using Milestone xProtect 2017 R3 and implement analytics events with following suggested link http://download.milestonesys.com/MIPSDK/Samples/TriggerAlarmFromExternal-ConceptSolution.pdf .

I have successful pass all information to alarm manager except the face image by using Object tag with following XML

<?xml version='1.0' encoding='utf-8'?>

9688000a-d1a6-4c91-b48b-613f0c377aff

2018-06-13T13:30:24+08:00

Type

Event

Testing image

10.88.90.61

Testing

Front Door

TEST

FaceImage

0xFFD8FFE000104A46494600010101006000600000FFDB004300080606070605080707070909080A0C140D0C0B0B0C1912130F141D1A1F1E1D1A1C1C20242E2720222C231C1C2837292C30313434341F27393D38323C2E333432FFDB0043010909090C0B0C180D0D1832211C2132323232323232323232323232323232323232

FaceImage

0xFFD8FFE000104A46494600010101006000600000FFDB004300080606070605080707070909080A0C140D0C0B0B0C1912130F141D1A1F1E1D1A1C1C20242E2720222C231C1C2837292C30313434341F27393D38323C2E333432FFDB0043010909090C0B0C180D0D1832211C2132323232323232323232323232323232323232

I would appreciate your help.

If you need to save an image use the “snapshot” for it..

<SnapshotList> 
<Snapshot> 
<TimeOffset>0</TimeOffset> 
<Width>...</Width> 
<Height>...</Height> 
<HasOverlay>false</HasOverlay> 
<SizeInBytes>...</SizeInBytes> 
<Image>...</Image> 
</Snapshot>
</SnapshotList> 

(Image is Base64)

Snapshots will be displayed in the Smart Client Alarm Manager Alarm Preview when the alarm is picked in the Alarm List. Depending on your need you might not need to make further plugin development to present the snapshot images.

Note..

It is not always recommended to save an image with an analyticsevent. Let me give give an example: In XProtect LPR no snapshot is saved. Using the data in the event you can find the original image in the recorded footage instead, in this way you do not fill the SQL, where analytics events and alarms are saved, with images already saved in the recordings.

Dear Anderson,

Thank for you Info.
I have add the tag that you had mention as below

<?xml version='1.0' encoding='utf-8'?> 0d8dc7de-f6ab-4e51-b45c-884c4e624133 2018-06-13T22:48:06+08:00 Type neoF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ZLmdIwgIG7J9e3FdT8WdB0zwz42ksNItvs9oLSOUR72f5jnJyxJ7Cu4/Z/8A+PPXP+u0H/oLVifGH/ksNp/1ytP/AEM0AdHp3wr8Kto9poN1dZ8S6jam7trvY48tPlP3Q207c45OTmvDbmL7PdTQZz5UjJnGM4JGf0r3HxD/AMnMaN/uw/8Aotq8t+IH/JRPEP8A1/SUAc5RRRQB/9k=

Also image value has been change into base64.

But image still can’t show in the panel at alarm manager. Please advise & thank.

Kenneth Tang

i-Total Service Ltd

Better Quality, Better life

Tel :9035 2859 / 2388 8311

Please consider the environment before printing this email.

* Disclaimer *

This message and any attachments are confidential and are intended only for the use of the addressee. If you are not the intended recipient, you should not disseminate, distribute or copy this communication. If you have received this communication in error, lease notify us immediately by return email and delete the original message. We use virus scanning software but exclude all liability for viruses or similar in any attachment. Thank you.

The node must be before node.

Tip: If you use the TriggerAnalyticsEventXML sample application you can verify the XML against the schema (Validate XML button)

A positive note: I was able to verify that image and surrounding data is correct, I was able to use it in my test system!

Dear Andersen,

Thank for your instruction and we have successful to display the snapshot in alarm manager which shown as follow:

Could we config to show the video and phone in only 1 row instead of 2 ? Also, if we want to set overlay text on the snapshot, how could we do? thx.

KennethT

Kenneth Tang

i-Total Service Ltd

Better Quality, Better life

Tel :9035 2859 / 2388 8311

Please consider the environment before printing this email.

* Disclaimer *

This message and any attachments are confidential and are intended only for the use of the addressee. If you are not the intended recipient, you should not disseminate, distribute or copy this communication. If you have received this communication in error, lease notify us immediately by return email and delete the original message. We use virus scanning software but exclude all liability for viruses or similar in any attachment. Thank you.

The first display in the rows is the recorded camera image and this cannot be left out.

If you have an analytics event (or an alarm based on an analytics event) with bounding box or polygons it will be displayed on top of the recorded camera image.