[tool] [tutorial] Free AI Person Detection for Blue Iris

aesterling

Getting comfortable
Joined
Oct 9, 2017
Messages
352
Reaction score
346
FYI in the latest release at my request Ken added so if you cancel an alert it removes from the timeline. This means once cancel URL's are working/fixed in the AI you don't have to use Flags if you use cancel also and enable in BI to delay to wait for since only valid ones would be marked. That means flags can now be used for other purposes if one wanted also and makes the timeline in BI much more useful!
Excited to try this!

If you use the “delay” in BI and it receives a response from AI Tool before the delay countdown is done, does it immediately send the alert or wait for the delay countdown to finish?
 
Last edited:

blulite

n3wb
Joined
Aug 2, 2020
Messages
8
Reaction score
3
Location
FLorida
I am running 1.67 in service mode via 'nssm'. The computer auto-reboots every evening as I thought this might fix the problem. About every 1-3 days I get an instant reboot (no BSOD). It looks like the power cord has been pulled and then plugged back in. When it reboots several of my camera.txt files are corrupt (blank) and need to be restored via a copy. I searched the Event Logs, and found this:

Code:
From: Application Error

Faulting application name: aitool.exe, version: 1.0.0.0, time stamp: 0xda540642
Faulting module name: KERNELBASE.dll, version: 10.0.19041.488, time stamp: 0x42f14898
Exception code: 0xe0434352
Fault offset: 0x00129962
Faulting process id: 0x3564
Faulting application start time: 0x01d69e75c6ae630e
Faulting application path: H:\BlueIris\AI.Tool\aitool.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 749e6392-136e-4154-b9bf-7387a78a340b
Faulting package full name:
Faulting package-relative application ID:
Code:
From: .NET runtime

 Application: aitool.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
   at System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window, System.String, System.String, System.Windows.Forms.MessageBoxButtons, System.Windows.Forms.MessageBoxIcon, System.Windows.Forms.MessageBoxDefaultButton, System.Windows.Forms.MessageBoxOptions, Boolean)
   at WindowsFormsApp2.Shell.LoadCameras()
   at WindowsFormsApp2.Shell..ctor()
   at WindowsFormsApp2.Program.Main()
Any ideas?
 
Last edited:

Chris Dodge

Pulling my weight
Joined
Aug 9, 2019
Messages
92
Reaction score
115
Location
massachusetts
@blulite - In general, apps dont directly cause instant reboot or BSOD directly. Some problem with accessing hardware might. Drivers need updating? Drive going bad? Memory going bad?

I've had a number of times where my aitool cameras or config were corrupt after an unexpected reboot. A few times a CHKDSK fixed and the last time I traced this down to a bad drive in my raid array.

We are near 100 pages here thanks to @GentlePumpkin - Its a bit like watching your car's odometer roll over 999,999 miles. I'm pretty sure I'll need a picture when it happens.
 

blulite

n3wb
Joined
Aug 2, 2020
Messages
8
Reaction score
3
Location
FLorida
@blulite - In general, apps dont directly cause instant reboot or BSOD directly. Some problem with accessing hardware might. Drivers need updating? Drive going bad? Memory going bad?

I've had a number of times where my aitool cameras or config were corrupt after an unexpected reboot. A few times a CHKDSK fixed and the last time I traced this down to a bad drive in my raid array.

We are near 100 pages here thanks to @GentlePumpkin - Its a bit like watching your car's odometer roll over 999,999 miles. I'm pretty sure I'll need a picture when it happens.
hmmmm. Maybe you are not looking at the error info I posted? Prior to each crash I am getting the same error, and it’s coming via aitool.exe?
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
FYI in the latest release at my request Ken added so if you cancel an alert it removes from the timeline. This means once cancel URL's are working/fixed in the AI you don't have to use Flags if you use cancel also and enable in BI to delay to wait for since only valid ones would be marked. That means flags can now be used for other purposes if one wanted also and makes the timeline in BI much more useful!
Does this just remove the alert? It would be nice if it could cancel record for folk that only record incidents rather than record continously. This would finally enable us to stop using clone cameras.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
951
Does this just remove the alert? It would be nice if it could cancel record for folk that only record incidents rather than record continously. This would finally enable us to stop using clone cameras.
I'd like to hear more specifics with how this could work. In the end, I'd much prefer a way for BI to only trigger and record based on what AI "sees". Thanks
 

setch

n3wb
Joined
Oct 10, 2020
Messages
10
Reaction score
16
Location
UK
New to Deepstack AI and need a little help if possible. I installed BI, AI and Deepstack (docker CPU version) and all worked fine. I wanted to see if installing an NVIDIA GPU would speed up processing. So I installed an NVIDA card and then removed the CPU docker and tried to install the GPU version, but it fails to install. I get part way through the pulling the deepstack:gpu-x3-beta and then I get "unauthorized: authentication required" Any guidance would be appreciated. I have attached a screengrab of the error if it helps.
 

Attachments

Hourglass

n3wb
Joined
Aug 26, 2019
Messages
22
Reaction score
3
Location
Canada
Saw that the new version adds support so no duplicate cameras are needed so I gave it a go. But I think I have something setup incorrectly and want to get some help

If we are using the same camera for alerts/triggers, then won't all triggers cause an alert, whether it went through Aitools or not? Since in the Alerts tab you can either choose "Fires when: Never" which turns off external sources as an option, or "Fires when: this camera is triggered", which would send an alert every time the camera is triggered, not every time AItools triggers it.

So now it either never fires an alert, or fires an alert every time the camera triggers it, not every time AItools triggers it.

Any help is appreciated!
 

aesterling

Getting comfortable
Joined
Oct 9, 2017
Messages
352
Reaction score
346
Saw that the new version adds support so no duplicate cameras are needed so I gave it a go. But I think I have something setup incorrectly and want to get some help

If we are using the same camera for alerts/triggers, then won't all triggers cause an alert, whether it went through Aitools or not? Since in the Alerts tab you can either choose "Fires when: Never" which turns off external sources as an option, or "Fires when: this camera is triggered", which would send an alert every time the camera is triggered, not every time AItools triggers it.

So now it either never fires an alert, or fires an alert every time the camera triggers it, not every time AItools triggers it.

Any help is appreciated!
I use the “delay” option in BI so it waits to fire the alert until AI Tool has had time to process, and confirm or cancel the alert.

IMG_2842.jpg
 
Last edited:

Hourglass

n3wb
Joined
Aug 26, 2019
Messages
22
Reaction score
3
Location
Canada
Updated/forked version of AI Tool by [mention]Chris Dodge [/mention] has the features you’re looking for: VorlonCD/bi-aidetection
Sorry to ask again. I downloaded from the github the exe you linked and tested it out. If the result is positive, it would send the trigger URL, however it doesn't seem to send anything when the result is negative.

Log:
[11.10.2020, 04:42:02.819]: DetectObjects> 127.0.0.1:83 - (1/6) Uploading a 326543 byte image to DeepQuestAI Server at [11.10.2020, 04:42:03.940]: DetectObjects> 127.0.0.1:83 - (2/6) Posted in 1119ms, Received a 33 byte response.
[11.10.2020, 04:42:03.947]: DetectObjects> 127.0.0.1:83 - (3/6) Processing results...
[11.10.2020, 04:42:03.950]: DetectObjects> 127.0.0.1:83 - Detected objects: ((NONE))
[11.10.2020, 04:42:03.952]: DetectObjects> 127.0.0.1:83 - (5/6) Performing CANCEL actions:
[11.10.2020, 04:42:03.955]: DetectObjects> 127.0.0.1:83 - (6/6) Camera frontdoor caused a false alert, nothing detected.
[11.10.2020, 04:42:03.959]: DetectObjects> 127.0.0.1:83 - Total Time: 1455ms (Count=18, Min=1310ms, Max=3167ms, Avg=1609ms)
[11.10.2020, 04:42:03.964]: DetectObjects> 127.0.0.1:83 -DeepStack (URL) Time: 1119ms (Count=18, Min=1020ms, Max=2830ms, Avg=1258ms)



[11.10.2020, 04:41:42.612]: DetectObjects> 127.0.0.1:83 - (1/6) Uploading a 293947 byte image to DeepQuestAI Server at [11.10.2020, 04:41:43.807]: DetectObjects> 127.0.0.1:83 - (2/6) Posted in 1196ms, Received a 122 byte response.
[11.10.2020, 04:41:43.812]: DetectObjects> 127.0.0.1:83 - (3/6) Processing results...
[11.10.2020, 04:41:43.815]: DetectObjects> 127.0.0.1:83 - Detected objects: Person (93.40%),
[11.10.2020, 04:41:43.817]: DetectObjects> 127.0.0.1:83 - (4/6) Checking if detected object is relevant and within confidence limits:
[11.10.2020, 04:41:43.820]: DetectObjects> Person (93.4%): Upper: 10 Lower: 100
[11.10.2020, 04:41:43.823]: Outsidemask> ->Camera has no mask, the object is OUTSIDE of the masked area.
[11.10.2020, 04:41:43.825]: DetectObjects> 127.0.0.1:83 - Person (93.40%) confirmed.
[11.10.2020, 04:41:43.829]: DetectObjects> 127.0.0.1:83 - The summary:person (93.40%)
[11.10.2020, 04:41:43.832]: DetectObjects> 127.0.0.1:83 - (5/6) Performing alert actions:
[11.10.2020, 04:41:43.834]: CallTriggerURLs> -> trigger URL called: , response: 'signal=green profile=1 lock=0 clip=1565947499 camera=Front Door '
[11.10.2020, 04:41:43.838]: Trigger> frontdoor last triggered at 10/11/2020 4:41:43 AM.
[11.10.2020, 04:41:43.856]: DetectObjects> 127.0.0.1:83 - (6/6) SUCCESS.
[11.10.2020, 04:41:43.859]: DetectObjects> 127.0.0.1:83 - Adding detection to history list.
[11.10.2020, 04:41:43.864]: DetectObjects> 127.0.0.1:83 - Total Time: 1549ms (Count=14, Min=1374ms, Max=3167ms, Avg=1645ms)
[11.10.2020, 04:41:43.868]: DetectObjects> 127.0.0.1:83 -DeepStack (URL) Time: 1196ms (Count=14, Min=1039ms, Max=2830ms, Avg=1288ms)

Do I need to enable the cancel function anywhere?
 

aesterling

Getting comfortable
Joined
Oct 9, 2017
Messages
352
Reaction score
346
Sorry to ask again. I downloaded from the github the exe you linked and tested it out. If the result is positive, it would send the trigger URL, however it doesn't seem to send anything when the result is negative.

Do I need to enable the cancel function anywhere?
I’ll test it today, but [mention]B-Murda [/mention]mentioned this earlier which sounds like a great solution:

FYI in the latest release at my request Ken added so if you cancel an alert it removes from the timeline. This means once cancel URL's are working/fixed in the AI you don't have to use Flags if you use cancel also and enable in BI to delay to wait for since only valid ones would be marked. That means flags can now be used for other purposes if one wanted also and makes the timeline in BI much more useful!
Do you know if this is available in the latest BI release or not out yet?
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
I use the “delay” option in BI so it waits to fire the alert until AI Tool has had time to process, and confirm or cancel the alert.
Unfortunately this facility is aimed at users that record continuously. It cancels the alert but does not impact the record trigger.
Copied from Help File: The Allow disarm time by delaying alerts setting basically gives you time to prevent an
alert, perhaps as you enter the home or building where the camera would normally be
triggered. If you are using the Sentry Smart Alerts, this is basically what is employed—the
camera still triggers for recording, but the alerts are delayed until the Sentry service makes a
determination on the accuracy of the detection.
 
Last edited:

jj2473

n3wb
Joined
Dec 30, 2019
Messages
8
Reaction score
0
Location
New Jersey
Hello Everyone,
Thanking everyone for the work on this. I recently tried switching from AI Tool 1.67 to the latest VorlonCD fork and been having the following issue. Setup camera and Deepstack and Telegram stuff. Log file indicates issues connecting to database. Any idea or thoughts, I can stop the Vorlon fork and restart AI Tool 1.67 and it works fine.
 

Attachments

Top