<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://blueirissoftware.com/forum/app.php/feed/topic/2758" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-10-19T23:40:08+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2758</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-10-19T23:40:08+00:00</updated>

		<published>2021-10-19T23:40:08+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=10895#p10895</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=10895#p10895"/>
		<title type="html"><![CDATA[Smart Alerts - Motion &amp; DeepStack]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=10895#p10895"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><div style="margin-left:3em">In order to really help provide guidance on smarter alerts, a fair level of understanding and detail needs to be provided in the ticket.  <br><br><strong class="text-strong">Summary</strong><br>While I may have preferred if the user provided the camera settings (camera settings -&gt; general tab -&gt; export), he did a really good job providing the detail needed to understand what he was trying to do in a concise manner.  The combination of screenshots of relevant camera settings with his description made understanding clear.<br><br></div><strong class="text-strong"><span style="font-size:150%;line-height:116%">Customer ticket</span></strong><div style="margin-left:3em"><br>This is my second time trying to track down this issue. As a quick rehash of the issue:<br><br>I have cameras with multiple zones, A and B. A is a larger zone and contains everything where I want to detect motion. B is a smaller zone that overlaps on A. I want to analyze all motion with Deepstack and trigger an alert on all confirmed objects (person,car,truck,bus,motorcycle,bicycle) in zone A, but I want alert actions to only occur on zone B when a person is confirmed by Deepstack. <br><br>Under trigger, artificial intelligence.. I have all zones selected. That allows Deepstack to analyze all motion detections.<br><br>Under Alerts, Trigger sources and zones: I have all zones selected with "Any" in the drop-down. This should allow both A and B to create alerts when DS detects an object.<br><br>Under Alerts -&gt; Actions -&gt; On Alert: Each action has zones/sources set to "=AB" and the required objects set to 'person:50'. This should only fire the alert actions when the motion is detected in both zones A and B, correct?<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1988" class="postimage" alt="smart alerts img1.png" onclick="viewableArea(this);" /></dt></dl></div><br>A few minutes ago this alert caused my alert action to fire:<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1989" class="postimage" alt="smart alerts img2.png" onclick="viewableArea(this);" /></dt></dl></div><br>BI correctly identified this alert as motion A, but it fired the alert actions anyway. <br><div class="codebox"><p>Code: </p><pre><code>3 10/18/2021 1:52:38.552 PM FrontCam             MOTION_A3 10/18/2021 1:52:38.670 PM Rear_PTZ             MOTION_A3 10/18/2021 1:52:38.851 PM Front_Cam_247       GROUP0 10/18/2021 1:52:38.852 PM Driveway             DeepStack: person:60% [2032,325 2085,468] 480ms0 10/18/2021 1:52:42.620 PM FrontCam             DeepStack: person:59% [872,295 932,436] 332ms10 10/18/2021 1:52:42.910 PM Server               ::: Connected0 10/18/2021 1:52:43.035 PM FrontCam             Push: OK to BIApp0 10/18/2021 1:52:45.451 PM FrontCam             SMS: xxx@.google.com with 1 attachment/s</code></pre></div>This has happened multiple times today. I am running on 5.5.1.12 (10/17/2021).<br><br>It's windy today. Is it possible that the alerts are happening because there are shadows moving in zone B even though the detected object is not in zone B?<br><br>I'm going to try to switch my alert actions from "=" to "All" with zones A and B checked. It seems like those should produce the same results.<br><br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Comments / Feedback</strong></span><div style="margin-left:3em"><blockquote class="uncited"><div>This is my second time trying to track down this issue. As a quick rehash of the issue:<br><br>I have cameras with multiple zones, A and B. A is a larger zone and contains everything where I want to detect motion. B is a smaller zone that overlaps on A.  </div></blockquote><div style="margin-left:3em"> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> <br><strong class="text-strong">Motion zones</strong><br>While I would have preferred the camera settings (camera settings -&gt; general tab -&gt; export) in order to see the actual zones, the zones description will suffice since the concept of a larger zone (A) which contains the field of view of the camera and a smaller zone (B) that overlaps on A is a widely understood concept.  Easy to grasp.<br><br></div><blockquote class="uncited"><div>I want to analyze all motion with Deepstack and trigger an alert on all confirmed objects (person,car,truck,bus,motorcycle,bicycle) in zone A, but I want alert actions to only occur on zone B when a person is confirmed by Deepstack. </div></blockquote><div style="margin-left:3em"> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> <br><strong class="text-strong">Objective</strong><br>Objective is clearly identified.<br>The use case is this camera faces the street and zone A detects cars and people passing by. Zone B is the approach to my front door and the alert actions push alerts to mobile devices when a person approaches the door.  The user clearly states what he is trying to do.<br><br></div><blockquote class="uncited"><div>Under trigger, artificial intelligence.. I have all zones selected. That allows Deepstack to analyze all motion detections.<br><br>Under Alerts, Trigger sources and zones: I have all zones selected with "Any" in the drop-down. This should allow both A and B to create alerts when DS detects an object.<br><br>Under Alerts -&gt; Actions -&gt; On Alert: Each action has zones/sources set to "=AB" and the required objects set to 'person:50'. This should only fire the alert actions when the motion is detected in both zones A and B, correct?<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1988" class="postimage" alt="smart alerts img1.png" onclick="viewableArea(this);" /></dt></dl></div><br></div></blockquote><div style="margin-left:3em">  <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea">  <br><strong class="text-strong">Supporting evidence</strong><br><br>The user describes his settings and his reasoning for the settings.  Also asks to confirm his understanding.  He also provides just the right screenshots to easily understand his setup.  Again, I would have preferred to have his camera settings just to confirm my understanding.<br><br></div><blockquote class="uncited"><div>A few minutes ago this alert caused my alert action to fire:<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1989" class="postimage" alt="smart alerts img2.png" onclick="viewableArea(this);" /></dt></dl></div><br>BI correctly identified this alert as motion A, but it fired the alert actions anyway. <br><div class="codebox"><p>Code: </p><pre><code>3 10/18/2021 1:52:38.552 PM FrontCam             MOTION_A3 10/18/2021 1:52:38.670 PM Rear_PTZ             MOTION_A3 10/18/2021 1:52:38.851 PM Front_Cam_247       GROUP0 10/18/2021 1:52:38.852 PM Driveway             DeepStack: person:60% [2032,325 2085,468] 480ms0 10/18/2021 1:52:42.620 PM FrontCam             DeepStack: person:59% [872,295 932,436] 332ms10 10/18/2021 1:52:42.910 PM Server               ::: Connected0 10/18/2021 1:52:43.035 PM FrontCam             Push: OK to BIApp0 10/18/2021 1:52:45.451 PM FrontCam             SMS: xxx@.google.com with 1 attachment/s</code></pre></div>This has happened multiple times today. I am running on 5.5.1.12 (10/17/2021).<br><br>It's windy today. Is it possible that the alerts are happening because there are shadows moving in zone B even though the detected object is not in zone B?<br><br>I'm going to try to switch my alert actions from "=" to "All" with zones A and B checked. It seems like those should produce the same results.</div></blockquote><div style="margin-left:3em"> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> <br><strong class="text-strong">Current Issue</strong><br><br>Based on his understanding and his settings he then explains the issue.<br><div style="margin-left:3em">A few minutes ago this alert caused my alert action to fire...</div><strong class="text-strong">The Alert screenshot and Logs clearly and concisely explained the issue with evidence.</strong>  He closes with additional thoughts and possible tests.<br><br><br></div></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Support Response</strong></span><div style="margin-left:3em"> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_exclaim.gif" width="15" height="17" alt=":!:" title="Exclamation"> Below is further correspondence regarding the ticket and final resolution if you are curious.  (optional read)<br><br>Interesting.  Good analysis.<br><blockquote class="uncited"><div>It's windy today. Is it possible that the alerts are happening because there are shadows moving in zone B even though the detected object is not in zone B?</div></blockquote>I think you are right.  No where do you specify the object from A moved to B or vice versa (A-B).  So BI (I think) is alerting because there is Motion in A and B and a person was detected somewhere (A or B, in this case A). <br><br>What are the requirements?<ul><li>You want to create alerts in the clip list when person/vehicles are in A</li><li>However, you only want alerts when person/vehicle are in B</li></ul>So break it down by requirement.<br>The first requirement is simple.  Your current settings are fine, i.e. create a Zone A and turn on DeepStack.<br><br>The second part is a little tricky (and brittle).  You need to approximate how much time would be needed for a person to walk to Zone B or park the car and walk to Zone B.  Say it should happen in 10s.<br><br>In the alert action map, you need to create a wait action = 10s.<br>Then create the alert action (push,etc).  The logic for the Push action would be B only.<br>I think this would prevent the person on the street from alerting.<br><br>Alternatively, you can clone the camera.<br>Use the camera for requirement 1, i.e. create no alerts.<br>For the clone, create the alert for people in Zone B.<br><br>Keep me posted what works.<br><br>FYI, I go through a similar example in the Trigger webinar at 42:13.<br>See <a href="viewtopic.php?f=11&amp;t=2402" class="postlink">Case Study: Creating Triggers -&gt; Alerts</a> section.<br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Final Resolution</strong></span><div style="margin-left:3em">After consulting with engineering, we realized the current functionality cannot support his use case.<br><div style="margin-left:3em"><br>The user 's Push Notification (from email):<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2003" class="postimage" alt="DeepStack Alert_push.png" onclick="viewableArea(this);" /></dt></dl></div></div><div style="margin-left:3em"><br>After more back and forth, more details about the Push notification.<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2004" class="postimage" alt="DeepStack Alert_push settings.png" onclick="viewableArea(this);" /></dt></dl></div></div>The user understood the Push settings to mean only fire an alert if there is motion in A and B AND a person is identified in A and B.<br>Currently, DeepStack object detection is independent of motion zones.<br>What that means for this case is if there is Motion in A and B, then the alert logic passes the motion test.<br>Then in the frame that is sent to DeepStack is there a person identified in the image?<br><strong class="text-strong">The key understanding here is the object does NOT have to be in A and B</strong>.<br>The object only needs to be in the image.<br>Thus BI sent the alert because there was motion in A and B and a person was identified in the frame.<br><br>However, engineering is working to associate the object with the Zone.<br>So if the alert map stated B and person, the Alert would be sent correctly when a person was found in Zone B.<br>(Notice how sharing a screenshot of the settings associated to my description provides instant clarity.  Exactly what user did as well)<div style="margin-left:3em"><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2005" class="postimage" alt="DeepStack Alert_push settings fix.png" onclick="viewableArea(this);" /></dt></dl></div></div></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Tue Oct 19, 2021 11:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
