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

So my experiment to see if I could get another instance of Deepstack working did not work- I don't need another instance so it is not a show stopper but I am curious what I did wrong so any help is appreciated. I am running the Windows version and everything is loaded on this computer- (BI, AI-Tool, Deepstack) I loaded a new version of Deepstack onto another Windows computer, I tested everything as far as making sure it was activated. I used the IPV4 address of the new computer and tried adding a different port then I was using on the main machine, it errored out then I changed it to the same port I was using on the main machine, still errored out (see below for error) The only thing that is different between the 2 computers is the one that works is Win 10 Pro and the 2nd one is just a Win10 Home. When I tried to add the 2nd instance in the settings screen in AI TOOL I used a comma to separate them and I also tried " ; " same result either way. the Here are the errors with the different ports-

11/27/2020 3:01:14 AM DetectObjects Unable to connect to the remote server [WebException] Mod: <GetDetectionsFromAIServer>d__35 Line:992:21 Error AITOOLS.EXE 192.168.0.23:82 RSyardsd RSyardsd.20201127_030046280.jpg 1853 1 60 True aitool.[2020-11-27].log
11/27/2020 3:01:14 AM ImageQueueLoop ...Problem with AI URL: '' (URL ErrCount=4, max allowed of 5) Info AITOOLS.EXE 192.168.0.23:82 RSyardsd 1859 0 60 True aitool.[2020-11-27].log
11/27/2020 3:01:14 AM ImageQueueLoop ...Putting image back in queue due to URL '' problem (QueueTime=0.4, Image ErrCount=0, Image RetryCount=1, URL ErrCount=4): 'D:\AIinput\RSyardsd.20201127_030046280.jpg', ImageProcessQueue.Count=0 Info AITOOLS.EXE 192.168.0.23:82

Here is when I changed it to port 80-

11/27/2020 1:17:18 PM DetectObjects Unable to connect to the remote server [WebException] Mod: <GetDetectionsFromAIServer>d__35 Line:992:21 Error AITOOLS.EXE 192.168.0.23:80 LSyardsd LSyardsd.20201127_131657043.jpg 922 1 57 True aitool.[2020-11-27].log
11/27/2020 1:17:18 PM ImageQueueLoop ...Problem with AI URL: '' (URL ErrCount=4, max allowed of 5) Info AITOOLS.EXE 192.168.0.23:80 LSyardsd 928 0 57 True aitool.[2020-11-27].log
11/27/2020 1:17:18 PM ImageQueueLoop ...Putting image back in queue due to URL '' problem (QueueTime=0.4, Image ErrCount=0, Image RetryCount=1, URL ErrCount=4): 'D:\AIinput\LSyardsd.20201127_131657043.jpg', ImageProcessQueue.Count=0 Info AITOOLS.EXE 192.168.0.23:80 LSyardsd LSyardsd.20201127_131657043.jpg 929 0 57 True aitool.[2020-11-27].log
11/27/2020 1:21:58 PM WaitForNextURL ---- Trying previously failed URL again after 301 seconds. (ErrCount=4, Setting 'MinSecondsBetweenFailedURLRetry'=30): Info AITOOLS.EXE 127.0.0.1:80 LSyardsd 948 0 33 True aitool.[2020-11-27].log

What did I miss? THX.
 
Is anyone running the latest version.. 1.0.57.7637? For some reason it just sits on "processing image..." and everything queues up... i've tried rebuilding, rebooting, etc.
 
Is anyone running the latest version.. 1.0.57.7637? For some reason it just sits on "processing image..." and everything queues up... i've tried rebuilding, rebooting, etc.
which fork are you using? A few people (not me-do not know how) have compiled new versions I'm using one that says 2.0.109.7617 the latest one I am aware of from VorlonCD/bi-aidetection, (Chris Dodge) is 2.0.37.7608
 
Does anyone know why the Simple motion detection algorithm is suggested over Edge Vector other than to save CPU? Or is to conserve resources the only reason?
 
I'm pretty sure for Edge Vector to work you have to have "Use Zones and Hot Spots" enabled using at least "Zone A" with the whole screen selected.

You can also test your settings and see how motion detection is working by selecting a video to test by playing it back in Blue Iris directly in the console and right clicking and selecting "Test Run Video Through Motion Detector"
 
I'm pretty sure for Edge Vector to work you have to have "Use Zones and Hot Spots" enabled using at least "Zone A" with the whole screen selected.

You can also test your settings and see how motion detection is working by selecting a video to test by playing it back in Blue Iris directly in the console and right clicking and selecting "Test Run Video Through Motion Detector"
I guess at the end of the day you choose what works best for your application. I spent three days testing in a real world application and found Edge Vector detection failed miserably when I walked around the periphery of the field of view. Edge Vector definitely generates less false alarm but in my experience at the expense of missing real periphery alarm events.

FYI If you are not already aware, simple mode was the default for version 4.
 
I hate to be the one to add to an already long string, but i haven't found anything similar to this.

installed BI v5, DequestAI in Docker, and unzipped AI Tool 1.67.
Everything seems to be set up correctly but I am getting error (code: -2147467261 ) in my AI Tool logs.

Where do I start to try and de-bug this?
 
Everything seems to be set up correctly but I am getting error (code: -2147467261 ) in my AI Tool logs.

Where do I start to try and de-bug this?

You might get lucky and someone will have worked through the same code (and remember it), but you'll probably have more luck describing how your system is functioning (ie exactly where does it stop functioning), and focusing on that broken link. I don't think those codes are well documented or mean much... but i could be wrong.

double check the expected process occurs...
does BI trigger on motion, does it save an image file, does AITools check the image and process it, does deepstack trigger, does deepstack error, does deepstack trigger BI as needed, does BI action, etc.....
 
You might get lucky and someone will have worked through the same code (and remember it), but you'll probably have more luck describing how your system is functioning (ie exactly where does it stop functioning), and focusing on that broken link. I don't think those codes are well documented or mean much... but i could be wrong.

double check the expected process occurs...
does BI trigger on motion, does it save an image file, does AITools check the image and process it, does deepstack trigger, does deepstack error, does deepstack trigger BI as needed, does BI action, etc.....

I think it is getting stuck at Deepstack. My container log is full of image dection logs.
Here is what my AI Tool logs look like:

[29.11.2020, 20:00:34.817]: Starting analysis of C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg
[29.11.2020, 20:00:34.879]: System.IO.IOException | The process cannot access the file 'C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg' because it is being used by another process. (code: -2147024864 )
[29.11.2020, 20:00:34.917]: Could not access file - will retry after 10 ms delay
[29.11.2020, 20:00:35.181]: Retrying image processing - retry 1
[29.11.2020, 20:00:35.208]: (1/6) Uploading image to DeepQuestAI Server
[29.11.2020, 20:00:35.381]: (2/6) Waiting for results
[29.11.2020, 20:00:35.483]: (3/6) Processing results:
[29.11.2020, 20:00:35.579]: System.NullReferenceException | Object reference not set to an instance of an object. (code: -2147467261 )
[29.11.2020, 20:00:35.654]: ERROR: Processing the following image 'C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg' failed. Failure in AI Tool processing the image.
 
I think it is getting stuck at Deepstack. My container log is full of image dection logs.
Here is what my AI Tool logs look like:

[29.11.2020, 20:00:34.817]: Starting analysis of C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg
[29.11.2020, 20:00:34.879]: System.IO.IOException | The process cannot access the file 'C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg' because it is being used by another process. (code: -2147024864 )

[29.11.2020, 20:00:35.483]: (3/6) Processing results:
[29.11.2020, 20:00:35.579]: System.NullReferenceException | Object reference not set to an instance of an object. (code: -2147467261 )
[29.11.2020, 20:00:35.654]: ERROR: Processing the following image 'C:\Users\ddetm\Documents\AIinput\FrontDoorSD.20201129_200034626.jpg' failed. Failure in AI Tool processing the image.


run AItools in administrator mode, in case there is a permission error happening

Do you have some object categories selected in AItools?

what does the deepstack log history look like in docker? any error codes? does it get triggered?
 
run AItools in administrator mode, in case there is a permission error happening

Do you have some object categories selected in AItools?

what does the deepstack log history look like in docker? any error codes? does it get triggered?

Opened AI Tool as Admin, same logs.
Here is the docker log:
[GIN] 2020/11/30 - 03:12:02 | 403 | 3.578903ms | XXX | POST /v1/vision/detection
[GIN] 2020/11/30 - 03:12:07 | 403 | 67.691µs | XXX| POST /v1/vision/detection
[GIN] 2020/11/30 - 03:12:12 | 403 | 83.971µs | XXX| POST /v1/vision/detection
 
Last edited: