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

Ill give docker with noavx a go
the Bi web server part im not worried about as I already use the trigers from other projects
its getting the AI tools linked to deepstack where my problem is

Are you sure you have -e OBJECT_DETECTION=True set? The T needs to be uppercase.


Sent from my iPhone using Tapatalk
 
Thank you but I'm trying to add functions and change language, so I need to change the code and then compile it.
What is strange is that when I compile it I get that null exception error, but when I execute the last release of GentlePumpkin it works perfectly. So I know is nothing related to deepstack or my hardware. I'm thinking that if the code available corresponds to the last release, I must be doing something wrong when I compile but I don't know what.
Hope someone can give me a clue.

Make sure to update all nuget packages, then clean and rebuild the project. This should fix it.
 
  • Like
Reactions: MrPie
@balucanb Do you mind letting me know what cam this is? Looking for a good doorbell cam for the house that works with Blueiris. Thank you

Having triggering issues. 6 cameras all set up the same way. BI is only triggering/recording 3 of them? Not getting any pics in my AI folder (except for the 3 that do work) see below as to how they are set up in BI. I think it is a BI and not a AI-tool or Deepstack issue. I can see them all ( in DS) when I paste the trigger in to the browser, I have checked all the info in AI-Tool and it is all correct also. Any ideas what is going on? They (I?) pasted them out of order sorry
 
@balucanb Do you mind letting me know what cam this is? Looking for a good doorbell cam for the house that works with Blueiris. Thank you
Sure no problem. A couple things up front. I am as cheap as they come so you may not like my set up . BI does not love my choice of cameras. The camera is a ezviz C1C $24.95 on Amazon I think. It is a indoor camera. My entryway is wide/deep enough that I am not concerned about it not being waterproof. I view it on the BI U13 on my computer or my phone or a crappy old iPad I have. It sends alerts to telegraph using AI-Tool/DeepStack set up and I am using a aqara motion sensor that makes a light in my office blink when someone is at the door, that is set up thru smart things and Webcore. If you don't like cheap Chinese stuff this may not be the best route, but I have had no issues myself. BTW my whole camera setup is local so none of it ever hits the internet. Since I have been working from home since March I have no need (yet) to view anything from outside my home but eventually I will set up a VPN so I can look at stuff when I am away. Hope that answered your questions.
 
Last edited:
So running DeepStack on a Pi4 with an NCS2 .. better than pure CPU without AVX, for sure!

I am a bit cautious and curious about one thing though, there hasn't been any word from DeepStack in months, it is kind of looking like Abandonware at this point. Any thoughts on moving this to support other AI Services in case DeepStack goes away? I've tinkered with the idea of putting a GPU into my server and using that instead of the Pi+NCS2 but not too sure how well that'll work out for me either.
 
Last edited:
So can anyone help out the ZERO coding knowledge guy. I understand if I was using the original gentlepumpkin/bi-aidetection version, I could then go and pull down the AITOOL-VORLONCD.zip load it into the same spot and it is all GTG. But how do I get the latest version1.81 pre release I think, do I just pull the source code zip from the assets and unzip it to the same location? If that is really stupid question - Sorry but I have none of the skills you guys have. :)
 
I will put a - in my chat ID for telegram I get two errors. "Error: Object reference not set to an instance of an object. [NullReferenceException] Mod: <Trigger>d__34 Line:1699:25" and "ERROR: Could not upload image C:\Users\BlueIris\AppData\Local\Temp\BRSD.20201008_152643930.jpg to Telegram: chat not found [ChatNotFoundException] Mod: <TelegramUpload>d__32 Line:1460:33" And it does not work, but when I remove the - from the chat id. it works. Not sure why that is.



Be sure you put a '-' before your Chat ID #, also be sure your bot is invited to the group.
 
Man... I know what you mean about cheap. I like frugal. :) I have a stoop that is deep too. So that may be a good idea. would like a doorbell cam that works with BI if possible.

Sure no problem. A couple things up front. I am as cheap as they come so you may not like my set up . BI does not love my choice of cameras. The camera is a ezviz C1C $24.95 on Amazon I think. It is a indoor camera. My entryway is wide/deep enough that I am not concerned about it not being waterproof. I view it on the BI U13 on my computer or my phone or a crappy old iPad I have. It sends alerts to telegraph using AI-Tool/DeepStack set up and I am using a aqara motion sensor that makes a light in my office blink when someone is at the door, that is set up thru smart things and Webcore. If you don't like cheap Chinese stuff this may not be the best route, but I have had no issues myself. BTW my whole camera setup is local so none of it ever hits the internet. Since I have been working from home since March I have no need (yet) to view anything from outside my home but eventually I will set up a VPN so I can look at stuff when I am away. Hope that answered your questions.
 
  • Like
Reactions: balucanb
Man... I know what you mean about cheap. I like frugal. :) I have a stoop that is deep too. So that may be a good idea. would like a doorbell cam that works with BI if possible.
I opted for the camera instead of a doorbell, front of the house is all stone and the current dumb doorbell is far enough to the side of the door I was not sure if the view would work and I didn't want to mess with it to be honest. The camera gives me a really good view. Just to clear all the Ezviz cameras work with BI, you just have to use generic settings to get them up and running. Only real issue I have is that 2 of the cameras are PTZ and I have yet to figure out how to get them to function (the PTZ) in BI other than that the cameras work fine. If I want/need to use that I just pop open the Ezviz app. If want to run up your credit card or sell a gold bar I am pretty sure the nest doorbell cams work in BI. Ezviz sells one for around 80 bucks U.S. that is also supposed to work. Forgot to mention all my cameras are Wifi. The actual outside ones I own do have POE capabilities. Just to lazy and fat to pull cable :O
 
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!
 
  • Like
Reactions: aesterling
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:
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:
@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.
 
  • Like
Reactions: aesterling
@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?
 
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.
 
  • Like
Reactions: 105437