AI can detect a person, but not appears in alerts.

JirkaAerox
Posts: 7
Joined: Thu Aug 17, 2023 10:49 pm

AI can detect a person, but not appears in alerts.

Post by JirkaAerox »

Hey everyone! I recently switched to BlueIris, and I've been loving it so far. However, I've noticed a little quirk. Even though the AI shows excellent object recognition at 90 % or more, sometimes it doesn't add the clips to the alerts folder, and I just have no idea that it detected someone without going through the clips and watching it whole.

I've set up one configuration that's synced with all my other cameras, and they all seem to recognize objects just fine with "testing and tuning". It's a bit puzzling, but occasionally, I've noticed that the AI option is grayed out, even though it's clearly doing its job. The AI is impressively accurate, from what I can tell.

However, here's the catch: BlueIris seems to ignore about 60 % of the triggered and confirmed AI detections. I'm using two Reolink 520A cameras, which have had a few issues (the ones in the bottom right corner)The rest of my cameras are some of the cheapest ones I found on Aliexpress, but surprisingly, everything works smoothly with them.

I keep increasing the sensitivity with no luck, now: min. obj. size 170, min. contrast 17, min confidence 40 %, reak-time images 4, analyze one each 500ms. BlueIris 5.8.0.1 (keep updating to see if it fix itself)

Any ideas or suggestions to fix my BlueIris setup? Thanks! 😊

https://paste.pics/a989e5d3c39c0fb2336074348cd10ee7
Image
https://paste.pics/15f3492de5e5e53e605099c99af17175
Image
https://paste.pics/7aeea8bd8ef14c4dd5d70bdcec36b54a
Image
User avatar
TimG
Posts: 2098
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: AI can detect a person, but not appears in alerts.

Post by TimG »

Hi, if the sensitivity was too low, BI5 wouldn't be sending the images to CPAI for verification. The key to figuring out what CPAI is doing is the DAT files. Tick "Save AI analysis details" and the next time it triggers it will save a DAT file.

But you have 90% recognition which is well high enough. Hmm, something is blocking or resetting the Alert. What setting do you have in Trigger/ Motion detection/ Configure/ Object detection/ Edit/ Reset detector when ?
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
JirkaAerox
Posts: 7
Joined: Thu Aug 17, 2023 10:49 pm

Re: AI can detect a person, but not appears in alerts.

Post by JirkaAerox »

Hello, thank you for your time. The "Save AI analysis details" option is enabled by default. However, I couldn't locate the other settings, possibly due to changes in tab placement and naming conventions in newer versions. I've checked through all the tabs, but I couldn't find anything resembling "Reset detector when."

Regarding the .DAT files, I've noticed an anomaly. The Aliexpress camera's yellow area is directly on the object, but the Reolink camera's yellow area is noticeably off the object. Is this something we should be concerned about?
Attachments
.DAT of the original failed alert
.DAT of the original failed alert
Snímek obrazovky 2023-10-04 005419.jpg (73.88 KiB) Viewed 53227 times
detected object, but not in alerts
detected object, but not in alerts
Snímek obrazovky 2023-10-04 005328.jpg (66.26 KiB) Viewed 53227 times
config
config
4_10.jpg (105.98 KiB) Viewed 53227 times
JirkaAerox
Posts: 7
Joined: Thu Aug 17, 2023 10:49 pm

Re: AI can detect a person, but not appears in alerts.

Post by JirkaAerox »

The cheap Aliexpress camera, where the yellow area aligns perfectly with the object – I suspect this might be the area BlueIris expects to detect the object, right? Is it feasible that this misalignment could be attributed to a delay between the main and sub streams? It's possible that the yellow area is generated from movement in the sub stream, while the actual image used for AI analysis comes from the main stream and might be slightly time-shifted.

All photos but in better resolution:
https://paste.pics/PIWR4
https://paste.pics/PIWR6
https://paste.pics/PIWR8
Attachments
The Aliexpress cheap camera
The Aliexpress cheap camera
Snímek obrazovky 2023-10-04 005442.jpg (70.89 KiB) Viewed 53161 times
MikeBwca
Posts: 1115
Joined: Thu Jun 20, 2019 5:39 am

Re: AI can detect a person, but not appears in alerts.

Post by MikeBwca »

Check 'Canceled Alerts'.

Can you post a capture of your AI settings?
JirkaAerox
Posts: 7
Joined: Thu Aug 17, 2023 10:49 pm

Re: AI can detect a person, but not appears in alerts.

Post by JirkaAerox »

MikeBwca wrote: Wed Oct 04, 2023 12:51 am Check 'Canceled Alerts'.

Can you post a capture of your AI settings?
Sorry for huge delay, but all my replies must be approved by moderators first :/ " This post is not visible to other users until it has been approved by a moderator."

Canceled alerts:
https://paste.pics/PJ0EL
https://paste.pics/PJ0ER
https://paste.pics/PJ0F0
Attachments
Snímek obrazovky 2023-10-04 092306.png
Snímek obrazovky 2023-10-04 092306.png (53.1 KiB) Viewed 53159 times
Snímek obrazovky 2023-10-04 091549.png
Snímek obrazovky 2023-10-04 091549.png (49.09 KiB) Viewed 53159 times
Last edited by JirkaAerox on Wed Oct 04, 2023 7:24 am, edited 2 times in total.
Rickity
Posts: 21
Joined: Thu Jun 17, 2021 3:00 pm
Location: South Coast UK

Re: AI can detect a person, but not appears in alerts.

Post by Rickity »

Tick zones and hotspot then edit and create a full page invert as A and set B to a zone you want covered by that camera
object detection set to B plus any other zones you set up seperated by a ,
object travels untick reset detector untick
try that..
User avatar
TimG
Posts: 2098
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: AI can detect a person, but not appears in alerts.

Post by TimG »

Note: The OP's posts are indeed stacking up waiting for moderator approval. There may now be new OP posts in between other posts. Hopefully this will be OK now.
Also, the OP is correct about the yellow squares showing synchronisation (or not) between streams. What do keyframe settings look like for your cameras ?
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
JirkaAerox
Posts: 7
Joined: Thu Aug 17, 2023 10:49 pm

Re: AI can detect a person, but not appears in alerts.

Post by JirkaAerox »

TimG wrote: Thu Oct 05, 2023 5:08 am Note: The OP's posts are indeed stacking up waiting for moderator approval. There may now be new OP posts in between other posts. Hopefully this will be OK now.
Also, the OP is correct about the yellow squares showing synchronisation (or not) between streams. What do keyframe settings look like for your cameras ?
The FPS/key of the Reolink is 30/0.50 for main stream and 10/0.25 for sub stream. I couldn't find the specific YouTube video, but one of the guys suggested trying out "Interframe Space" set to 1X, I believe. I've double-checked the configuration, but it appears that the most recent Reolink update may have changed the settings from 1X to default values. I changed that back to 1X and now I will see if it makes a difference.
User avatar
TimG
Posts: 2098
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: AI can detect a person, but not appears in alerts.

Post by TimG »

Excellent, let us know if that helps.

The Gotchas section of the forum has this from the DeepStack era:
For some reason, the BlueIris software is ignoring what the Deepstack server says in terms of confidence and the label. This seems to happen during the second, third or sometimes fourth image that Deepstack analyzes. I have confirmed with a packet capture that despite these additional images being sent back to the BlueIris software with a successful response, BlueIris ignores it and goes to cancel the alert. I confirm these images meet the criteria of the minimum confidence percentage and "to confirm". I would like to also mention that if DeepStack responds back with a prediction that is within the criteria on the first image, it works OK.

Fix: I just needed to change the keyframe interval to be the same value as the FPS so it is equal to 1.00 (as displayed from Blue Iris). The detection is working much better now. See Camera stream optimization article for details.

Alternative fix: If for some reason you cannot adjust the key frame interval on the camera, identify the current key frame interval (Status -> Cameras tab). If the value is 0.25, i.e. 1/4, i.e. 1 key frame every 4s, then set the pre-trigger buffer (Camera settings -> Record tab) greater than or equal to 4s. This will guarantee BI at least one key frame to process.
I think it also stated that main and sub-stream fps should be the same too. Give it all a try and let us know what works, otherwise Pogo will complain :lol:
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
Post Reply