Pelco Developer Network (PDN)

Receiving Sarix Analytic Events

You can receive analytic events from a Sarix device by subscribing to the device's VideoAnalytics web service using the Event Arbiter or Event Manager. The target namespace for the VideoAnalytics web service is:

urn:schemas-pelco-com:service:VideoAnalytics:2
You cannot configure or modify Sarix analtyics through the Pelco API.  Creation, modification, or deletion of Sarix analytic profiles must be performed through the device's web interface.

Event Format Samples

Directional Motion

<?xml version="1.0"?>
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0" osid="" status="0" isCombined="0" requireAck="0" eventURI="" serviceType="" deviceType="">
    <e:property>
        <analyticAlarm>
            <analyticAlarm type="urn:pelco-com:AlgorithmId:DirectionalMotion:1" name="DM">
                <alarmState>0</alarmState>
                <roiAlarm>
                    <roiAlarmState alarmSeverity="0"roi="Zone 1">0</roiAlarmState>
                    <alarmMsg>
                        <objGuid>85c840c7-9653-4c19-8386-bb2a7f3e10cc</objGuid>
                        <texts>
                            <entry>
                                <objGuid>3d047f46-5112-408b-aaa7-d8a19c4564f3</objGuid>
                                <mfi>Analytics/MsgAnalytics</mfi>
                                <msgId>838880801</msgId>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>Directional Motion</text>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>DM</text>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>Zone 1</text>
                            </entry>
                        </texts>
                    </alarmMsg>
                </roiAlarm>
            </analyticAlarm>
        </analyticAlarm>
    </e:property>
</e:propertyset>

 

Adaptive Motion

<?xml version="1.0"?>
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0" osid="" status="0" isCombined="0" requireAck="0" eventURI="" serviceType="" deviceType="">
    <e:property>
        <analyticAlarm>
            <analyticAlarm type="urn:pelco-com:AlgorithmId:AdaptiveMotion:1" name="DM">
                <alarmState>0</alarmState>
                <roiAlarm>
                    <roiAlarmState alarmSeverity="0" roi="Zone 2">0</roiAlarmState>
                    <alarmMsg>
                        <objGuid>85c840c7-9653-4c19-8386-bb2a7f3e10cc</objGuid>
                        <texts>
                            <entry>
                                <objGuid>3d047f46-5112-408b-aaa7-d8a19c4564f3</objGuid>
                                <mfi>Analytics/MsgAnalytics</mfi>
                                <msgId>838880801</msgId>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>Adaptive Motion</text>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>DM</text>
                            </entry>
                            <entry>
                                <objGuid>f77a3580-df8f-4498-adce-b51cb46bf434</objGuid>
                                <text>Zone 2</text>
                            </entry>
                        </texts>
                    </alarmMsg>
                </roiAlarm>
            </analyticAlarm>
        </analyticAlarm>
    </e:property>
</e:propertyset>

 

Event Message Contents

alarmSeverity:

  • 0:Minor
  • 1:Normal
  • 2:Major
  • 3:Critical

objGuid elements withn the and do not change, regardless of message type; you can probably ignore them.  However, if necessary, their definitions are:

  • WarningMsg Guid: 85c840c7-9653-4c19-8386-bb2a7f3e10cc
  • Analytics MFI Guid: 3d047f46-5112-408b-aaa7-d8a19c4564f3
  • Text Guid: f77a3580-df8f-4498-adce-b51cb46bf434

The current analytics plugin implementation supports the following analyticAlarm types:

urn:pelco-com:AlgorithmId:AdaptiveMotion:1
urn:pelco-com:AlgorithmId:CameraSabotage:1
urn:pelco-com:AlgorithmId:LoiteringDetection:1
urn:pelco-com:AlgorithmId:ObjectCounting:1
urn:pelco-com:AlgorithmId:StoppedVehicle:1