Milestone Analytics 2.2 Generic VA Interface User Manual

Page 10

Advertising
background image

Milestone XProtect Analytics 2.2 Generic VA Interface; Developer’s Manual

www.milestonesys.com

Page 10

Architecture & Data Flow

demonstrates how to use the Alert API from C# code. The following XML snippet is an example of
an alert:

<?xml version="1.0" encoding="utf-8"?>
<Alert xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="0" TimeStamp="2008-09-
29T20:06:02.0720778+02:00" Name="Hallway_Tripwire" xmlns="http://tempuri.org/Alert.xsd">
<Source>
<Server GUID="CCCF8C51-94DB-49b2-9718-0800A151D76B" Name="10.10.11.26">
<Description>Milestone Surveillance Server</Description>
</Server>
<Device GUID="D23414E5-B03F-4C78-8AB9-A36D1488F9C2" Hostname="10.10.50.28" Name="[Axis 221]
Camera 1">
<Location Name="Hallway Corner" />
</Device>
</Source>
<Rule Name="Hallway_Tripwire" Type="Tripwire">
<Polygon>
<Point X="241" Y="63" />
<Point X="65" Y="140" />
<Point X="75" Y="284" />
<Point X="115" Y="402" />
<Point X="238" Y="448" />
<Point X="398" Y="462" />
<Point X="521" Y="374" />
<Point X="494" Y="235" />
<Point X="486" Y="63" />
<Point X="303" Y="37" />
<Color R="0" G="0" B="255" A="255" />
</Polygon>
</Rule>
<Object ID="42" Name="John Doe" Type="Person" Size="2.39">
<BoundingBox Top="194" Left="286" Bottom="429" Right="408">
<Color R="255" G="0" B="0" A="255" />
</BoundingBox>
<Motion Speed="1.816466" ScreenSpeed="0.2389245" SpeedAngle="1.546658">
<Path>
<Point X="88" Y="288" />
<Point X="129" Y="300" />
<Point X="150" Y="304" />
<Point X="169" Y="307" />
<Point X="186" Y="311" />
<Point X="201" Y="313" />
<Point X="215" Y="315" />
<Point X="229" Y="316" />
<Point X="242" Y="316" />
<Point X="255" Y="316" />
<Point X="262" Y="316" />
<Point X="272" Y="315" />
<Point X="284" Y="314" />
<Point X="296" Y="312" />
<Point X="307" Y="310" />
<Point X="318" Y="309" />
<Point X="327" Y="308" />
<Point X="332" Y="308" />
<Color R="0" G="255" B="0" A="255" />
</Path>
</Motion>
</Object>
<Description>Tripwire at main door</Description>
<Vendor Name="VCA Vendor" />
</Alert>


For a detailed description of the alert format, please refer to the Xsd file and the Alert API
reference guide found in the doc (documentation) folder.

Advertising