Canceled Alert with 91% deepstack

Post Reply
mdmike41
Posts: 1
Joined: Thu Sep 16, 2021 3:42 pm

Canceled Alert with 91% deepstack

Post by mdmike41 » Thu Sep 16, 2021 3:50 pm

I am confused as to why sometimes I do not get alerts when deepstack finds objects. I cant find any rhythm to it, its very intermittent. I got an alert when this car left, but not when it came back an hour later. Deepstack obviously detected it as a car but in BlueIris it said nothing found. Any ideas?
Capture.JPG
Capture.JPG (223.3 KiB) Viewed 2557 times
Alex
Posts: 7
Joined: Fri Aug 27, 2021 7:29 am

Re: Canceled Alert with 91% deepstack

Post by Alex » Fri Sep 17, 2021 8:27 am

I have had the same kind of problems with some of my cameras.
The way I troubbleshooted it was to pull up the deepstack status on one part of the screen and BI on the other.
Then hold ctrl key and doubbleclick on the recording where nothing was found.
The clip now starts at the time of motion instead of the "pre time" and you can see in the deepstack status what deepstack percieved.
Then depending on how many pictures and time between you have set for that specific camera you can step forward some frames and see what deepstack sees.

Example from my end.
In the evening my camera triggered already when lights from the car was shining on the driveway and since I had like 4 pictures every 250ms it meant that
deepstack had already stopped it´s analysis before the car was visable in the frame.
dz93
Posts: 2
Joined: Mon Sep 20, 2021 5:27 pm

Re: Canceled Alert with 91% deepstack

Post by dz93 » Mon Sep 20, 2021 5:35 pm

mdmike41 wrote: Thu Sep 16, 2021 3:50 pm I am confused as to why sometimes I do not get alerts when deepstack finds objects. I cant find any rhythm to it, its very intermittent. I got an alert when this car left, but not when it came back an hour later. Deepstack obviously detected it as a car but in BlueIris it said nothing found. Any ideas?

Capture.JPG
On your camera settings, go to the trigger tab and on the artificial intelligence settings where deepstack is located, uncheck the "use mainstream" setting. There's presumably a glitch in blue iris where when using main stream video to feed the AI it doesn't actually send the correct amount of images or is doing it too slowly and results in missed detections. Disabling the use mainstream option will instead use the sub stream feed for deepstack analysis and can send the images to deepstack much faster while also sending all of the set images. You can change how many images are sent by changing the number under "real time images". I usually set mine to 10 every 1second or less if need be.
User avatar
YrbkMgr
Posts: 106
Joined: Sun Nov 24, 2019 12:56 am

Re: Canceled Alert with 91% deepstack

Post by YrbkMgr » Thu Sep 23, 2021 5:40 am

This is how I think about DeepStack and BI and how I approached the same issue - I'm not saying I'm right, I'm saying that this is how it seems to me...

Regarding the car in the driveway, you should be aware that DeepStack has an option to determine if there are stationary objects and exclude them from the analysis. When enabled, it will cancel an alert for... well... stationary objects. That setting is found in Camera Settings -> Trigger -> Artificial Intelligence. So above all else, if that feature is enabled, you won't see an alert for a parked car even when it's confidence is above the minimum. I'm not saying that's the issue for you, but you should know about it.

From what I've surmised, there are two ways to view a DeepStack analysis: Review the DAT or Analyze the BVR. Each deliver different information.

Analyzing the BVR: Under Testing & Tuning -> Analyze with DeepStack, you are evaluating DS detection performance on a previous recording, period. It delivers no motion detection or trigger information - no "event" information. It has nothing to do with your camera settings. Instead of feeding DS live video, you're feeding it a recording. As far as I can tell, the biggest value is in making sure that your global AI settings perform as expected (face rec, lic plates, etc) - that's why this is under testing and tuning... so if Analyze with DeepStack is detecting everything you expect on a previously recorded video, then that's not where you should be looking.

Reviewing DS Tab of Status Window: DAT Status is the log where you review what happened that caused a "Go/No Go" alert event with the DAT file. DS is the gatekeeper for alerts - camera still triggers and records according to camera settings... alerts are confirmed or cancelled by DS instead of whenever the camera triggers.

In order to analyze what happened (DAT) the first requirement is to enable "Save DeepStack analysis details" (Camera Settings -> Trigger -> Artificial Intelligence). This creates a log of sorts so that one can review when DS began and what it found. It is stored in your Alerts folder by default. From that point on you will be able to view a clip and evaluate what DS detected.

To review the analysis, first open the Status Window and have the Deepstack Tab selected. Enable "Highlight Motion Rectangles" in that DS Tab. Now you're ready. Ctrl-DBL Click on a clip in the Clips pane. Two things happen: first, the clip opens at the frame that triggered the camera, and pauses. The second thing that will happen is the DS Tab of the Status Window will populate with information contained in the DAT file.

DeepStack "log" (dat) :
Deepstack Analysys 6.JPG
Deepstack Analysys 6.JPG (114.52 KiB) Viewed 2147 times
Analyze with Deepstack (bvr):
Deepstack Analysys 7.jpg
Deepstack Analysys 7.jpg (123.31 KiB) Viewed 2147 times

The DAT information indicates if DS motion rectangles line up with the frame that triggered the motion detector. Each timestamp on the tree shows what DS saw at that moment. As far as I can tell, this information tells you how well optimized the overall system is. CPU, GPU, Stream optimization, all of that plays a role in DS and BI seeing the same thing at the same time.

Basically, I got a higher percentage of motion rectangles lining up with BI after I optimized my streaming per the information in the Onboarding section of this forum. I hope this helps at some level...
What I love about standards is that there are so many to choose from!
mike2246
Posts: 3
Joined: Wed Sep 15, 2021 2:05 pm

Re: Canceled Alert with 91% deepstack

Post by mike2246 » Thu Sep 23, 2021 2:34 pm

I'm having similar problems with BI not sending a flag to DS to analyze the image/clip. I'm only having this problem with Reolink Cameras, my HIK and Amcrest work great using same Trigger/Motion/Record/Alert settings. In BI I see no alerts after walking out of the house to the car and back. Is there anything else that needs to be tweaked with a Reolink Camera?
Attachments
Settings 2.jpg
Settings 2.jpg (74.11 KiB) Viewed 2099 times
Settings 1.jpg
Settings 1.jpg (200.01 KiB) Viewed 2099 times
Post Reply