Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Crossing, Intrusion and Region Entrance Missing from Thermal Cameras (DS-2TD1228-2/QA) #276

Open
Liquoriced opened this issue Dec 16, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Liquoriced
Copy link

Liquoriced commented Dec 16, 2024

Even with the latest update (v1.1.1), the thermal camera's Perimeter Protection rules are not present in Home Assistant.

image
image
image

config_entry-hikvision_next-01JDN48DH5T874XFX524FG0MAR.json

data: |
  <?xml version="1.0" encoding="UTF-8"?>
  <ResponseStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <requestURL></requestURL>
  <statusCode>4</statusCode>
  <statusString>Invalid Operation</statusString>
  <subStatusCode>notSupport</subStatusCode>
  </ResponseStatus>

@maciej-or
Copy link
Owner

I don't know why cameras with second thermal channel behave differently but let's keep looking, please try to catch responses like you did before for

/Event/triggers/linedetection-1/channels/2
or
/Event

@Liquoriced
Copy link
Author

Here are the responses.

/Event/triggers/linedetection-1/channels/2

data: |
  <?xml version="1.0" encoding="UTF-8"?>
  <ResponseStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <requestURL></requestURL>
  <statusCode>6</statusCode>
  <statusString>Invalid XML Content</statusString>
  <subStatusCode>badXmlContent</subStatusCode>
  </ResponseStatus>

/Event

data: |
  <?xml version="1.0" encoding="UTF-8"?>
  <EventNotification version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <EventTriggerList version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <EventTrigger>
  <id>IO-1</id>
  <eventType>IO</eventType>
  <eventDescription>IO Event trigger Information</eventDescription>
  <inputIOPortID>1</inputIOPortID>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>center</id>
  <notificationMethod>center</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>VMD-1</id>
  <eventType>VMD</eventType>
  <eventDescription>VMD Event trigger Information</eventDescription>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>record-1</id>
  <notificationMethod>record</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  <videoInputID>1</videoInputID>
  </EventTriggerNotification>
  <EventTriggerNotification>
  <id>beep</id>
  <notificationMethod>beep</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  <EventTriggerNotification>
  <id>center</id>
  <notificationMethod>center</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>tamper-1</id>
  <eventType>tamperdetection</eventType>
  <eventDescription>shelteralarm Event trigger Information</eventDescription>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>center</id>
  <notificationMethod>center</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>diskfull</id>
  <eventType>diskfull</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>diskerror</id>
  <eventType>diskerror</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>beep</id>
  <notificationMethod>beep</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>nicbroken</id>
  <eventType>nicbroken</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>ipconflict</id>
  <eventType>ipconflict</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>illaccess</id>
  <eventType>illaccess</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>badvideo</id>
  <eventType>badvideo</eventType>
  <eventDescription>exception Information</eventDescription>
  <EventTriggerNotificationList>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>audioexception-1</id>
  <eventType>audioexception</eventType>
  <eventDescription>audioexception Event trigger Information</eventDescription>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>center</id>
  <notificationMethod>center</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  <EventTrigger>
  <id>thermometry-2</id>
  <eventType>thermometry</eventType>
  <eventDescription>thermometry Event trigger Information</eventDescription>
  <videoInputChannelID>2</videoInputChannelID>
  <dynVideoInputChannelID>2</dynVideoInputChannelID>
  <EventTriggerNotificationList>
  <EventTriggerNotification>
  <id>center</id>
  <notificationMethod>center</notificationMethod>
  <notificationRecurrence>beginning</notificationRecurrence>
  </EventTriggerNotification>
  </EventTriggerNotificationList>
  </EventTrigger>
  </EventTriggerList>
  </EventNotification>

@maciej-or
Copy link
Owner

Unfortunately nothing related to line detection. If you are able to check http traffic in web browser console, we are looking for endpoint which returns sth like:

<EventTrigger>
  <id>linedetection-2</id>
  <eventType>linedetection</eventType>

Hikvision web ui hits many endpoints, some are redundant, some are failed so it will require patience and persistence. The wanted endpoint should be called by opening Area Settings or Linkage Method tab.

@Liquoriced
Copy link
Author

Liquoriced commented Dec 16, 2024

Does this help, from the Hikvision web ui network console?

Request URL:
http://192.168.254.212/ISAPI/Intelligent/Capabilities

<?xml version="1.0" encoding="UTF-8"?>
<IntelliCap version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<isFaceSupport>false</isFaceSupport>
<isBehaviorSupport>true</isBehaviorSupport>
<isLineDetectionSupport>true</isLineDetectionSupport>
<isFieldDetectionSupport>true</isFieldDetectionSupport>
<isRegionEntranceSupport>true</isRegionEntranceSupport>
<isRegionExitingSupport>true</isRegionExitingSupport>
<isLoiteringSupport>false</isLoiteringSupport>
<isGroupSupport>false</isGroupSupport>
<isRapidMoveSupport>false</isRapidMoveSupport>
<isParkingSupport>false</isParkingSupport>
<isUnattendedBaggageSupport>false</isUnattendedBaggageSupport>
<isAttendedBaggageSupport>false</isAttendedBaggageSupport>
<isTeacherSupport>false</isTeacherSupport>
<isStudentSupport>false</isStudentSupport>
<isSupportChannelPollingSchedules>false</isSupportChannelPollingSchedules>
<isTrafficSupport>false</isTrafficSupport>
<RestoreLib>
</RestoreLib>
<RestoreAlgLibParam>
</RestoreAlgLibParam>
<RestoreDefParamForbid>true</RestoreDefParamForbid>
<isFaceSnapPicParamSupport>false</isFaceSnapPicParamSupport>
<isSupportAlgParam>true</isSupportAlgParam>
<isSupportIntelliResource>true</isSupportIntelliResource>
<simpleVCAGuideEnabled>true</simpleVCAGuideEnabled>
<targetAttributeOverlapEnabled>false</targetAttributeOverlapEnabled>
</IntelliCap>

Request URL:
http://192.168.254.212/ISAPI/Intelligent/channels/2/behaviorRule/1

<?xml version="1.0" encoding="UTF-8"?>
<BehaviorRule version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<sid>1</sid>
<RuleInfoList>
<RuleInfo>
<ruleId>1</ruleId>
<ruleName>Rule1</ruleName>
<enabled>true</enabled>
<eventType>lineDetection</eventType>
<ruleType>line</ruleType>
<LineDetectionParam>
<directionSensitivity>any</directionSensitivity>
<detectionTarget>human</detectionTarget>
<sensitivity>50</sensitivity>
</LineDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>191</positionX>
<positionY>916</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>620</positionX>
<positionY>902</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>2</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>2</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>2</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>2</ruleId>
<ruleName>Rule2</ruleName>
<enabled>true</enabled>
<eventType>lineDetection</eventType>
<ruleType>line</ruleType>
<LineDetectionParam>
<directionSensitivity>any</directionSensitivity>
<detectionTarget>human</detectionTarget>
<sensitivity>50</sensitivity>
</LineDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>872</positionX>
<positionY>11</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>189</positionX>
<positionY>918</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>3</ruleId>
<ruleName>Rule3</ruleName>
<enabled>true</enabled>
<eventType>lineDetection</eventType>
<ruleType>line</ruleType>
<LineDetectionParam>
<directionSensitivity>any</directionSensitivity>
<detectionTarget>human</detectionTarget>
<sensitivity>50</sensitivity>
</LineDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>28</positionX>
<positionY>21</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>625</positionX>
<positionY>900</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>4</ruleId>
<ruleName>Rule4</ruleName>
<enabled>true</enabled>
<eventType>fieldDetection</eventType>
<ruleType>region</ruleType>
<FieldDetectionParam>
<durationTime>1</durationTime>
<sensitivity>50</sensitivity>
<detectionTarget>human</detectionTarget>
</FieldDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>974</positionX>
<positionY>21</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>748</positionX>
<positionY>813</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>473</positionX>
<positionY>723</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>315</positionX>
<positionY>24</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>5</ruleId>
<ruleName>Rule5</ruleName>
<enabled>true</enabled>
<eventType>lineDetection</eventType>
<ruleType>line</ruleType>
<LineDetectionParam>
<directionSensitivity>any</directionSensitivity>
<detectionTarget>human</detectionTarget>
<sensitivity>50</sensitivity>
</LineDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>11</positionX>
<positionY>657</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>193</positionX>
<positionY>916</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>6</ruleId>
<ruleName>Rule6</ruleName>
<enabled>true</enabled>
<eventType>lineDetection</eventType>
<ruleType>line</ruleType>
<LineDetectionParam>
<directionSensitivity>any</directionSensitivity>
<detectionTarget>human</detectionTarget>
<sensitivity>50</sensitivity>
</LineDetectionParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>178</positionX>
<positionY>8</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>76</positionX>
<positionY>749</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
<RuleInfo>
<ruleId>7</ruleId>
<ruleName>Rule7</ruleName>
<enabled>true</enabled>
<eventType>regionEntrance</eventType>
<ruleType>region</ruleType>
<RegionEntranceParam>
<detectionTarget>human</detectionTarget>
</RegionEntranceParam>
<SizeFilter>
<enabled>true</enabled>
<mode>actualSize</mode>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>1000</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>198</positionX>
<positionY>905</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>643</positionX>
<positionY>899</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>751</positionX>
<positionY>832</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>994</positionX>
<positionY>205</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>994</positionX>
<positionY>4</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>2</positionX>
<positionY>4</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>3</positionX>
<positionY>663</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode>general</sceneMode>
<relatedTriggerRuleList>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
<relatedTriggerRule>
<enabled>false</enabled>
<combinationRuleType>rule</combinationRuleType>
<relatedRuleID>1</relatedRuleID>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>
</RuleInfoList>
<targetAttributeOverlapEnabled>false</targetAttributeOverlapEnabled>
</BehaviorRule>

Request URL:
http://192.168.254.212/ISAPI/Intelligent/channels/2/behaviorRule/1/rule/capabilities

<?xml version="1.0" encoding="UTF-8"?>
<RuleInfo version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<ruleId opt="1,2,3,4,5,6,7,8"></ruleId>
<combinedRuleId opt="15,16"></combinedRuleId>
<ruleName/>
<enabled opt="true,false">false</enabled>
<ruleType opt="region,line">region</ruleType>
<LineDetectionParam>
<detectionTarget opt="all,human,vehicle,human_vehicle,others,human_other,vehicle_other">human</detectionTarget>
<directionSensitivity opt="left-right,right-left,any">any</directionSensitivity>
<sensitivity min="1" max="100">50</sensitivity>
</LineDetectionParam>
<FieldDetectionParam>
<durationTime min="0" max="30">1</durationTime>
<sensitivity min="1" max="100">50</sensitivity>
<detectionTarget opt="all,human,vehicle,human_vehicle,others,human_other,vehicle_other">human</detectionTarget>
</FieldDetectionParam>
<RegionEntranceParam>
<detectionTarget opt="all,human,vehicle,human_vehicle,others,human_other,vehicle_other">human</detectionTarget>
</RegionEntranceParam>
<RegionExitingParam>
<detectionTarget opt="all,human,vehicle,human_vehicle,others,human_other,vehicle_other">human</detectionTarget>
</RegionExitingParam>
<eventType opt="none,lineDetection,fieldDetection,regionEntrance,regionExiting"></eventType>
<SizeFilter>
<enabled opt="true,false">false</enabled>
<mode opt="pixels,actualSize">pixels</mode>
<ObjectSizeList size="7">
<ObjectSize>
<detectionTarget>all</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>human</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>2000</width>
<height>3000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>vehicle</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>1800</width>
<height>1400</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>human_vehicle</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>others</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>human_other</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
<ObjectSize>
<detectionTarget>vehicle_other</detectionTarget>
<MaxObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>5000</width>
<height>10000</height>
</MaxObjectSize>
<MinObjectSize>
<positionX>0</positionX>
<positionY>0</positionY>
<width>600</width>
<height>1000</height>
</MinObjectSize>
</ObjectSize>
</ObjectSizeList>
</SizeFilter>
<RuleRegion>
<RegionCoordinatesList>
<RegionCoordinatesList size="4"></RegionCoordinatesList>
<RegionCoordinates>
<positionX>0</positionX>
<positionY>1000</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</RuleRegion>
<sceneMode opt="general,LeavesInterfered" default="general">general</sceneMode>
<relatedTriggerRuleList size="3">
<relatedTriggerRule>
<enabled opt="true,false">false</enabled>
<combinationRuleType opt="rule,event,alarmInput"></combinationRuleType>
<relatedRuleID min="1" max="8"/>
<relatedEventType opt="VMD"></relatedEventType>
<relatedAlarmInputID min="1" max="1"/>
</relatedTriggerRule>
</relatedTriggerRuleList>
</RuleInfo>

Request URL:
http://192.168.254.212/ISAPI/Intelligent/channels/2/behaviorRule/1/notifications

<?xml version="1.0" encoding="UTF-8"?>
<RuleNotification version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<sid>1</sid>
<RuleList>
<RuleInfo>
<ruleId>1</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>2</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>3</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>4</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>5</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>6</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
<RuleInfo>
<ruleId>7</ruleId>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<videoInputID>1</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-2</id>
<notificationMethod>record</notificationMethod>
<videoInputID>2</videoInputID>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>audio</id>
<notificationMethod>audio</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</RuleInfo>
</RuleList>
</RuleNotification>

@maciej-or
Copy link
Owner

yea, it will help, but it's completely different than what other cameras support

@maciej-or maciej-or added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants