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

arg07

n3wb
Joined
Jun 16, 2020
Messages
8
Reaction score
0
Location
Toronto
Thanks for the suggestion about the network map. The drive is not networked though. It is an additional internal drive (that I use for storage) that I added to my system. That said, I did change the destination to my desktop on my c: drive. I also moved the AI program from my Program Files folder to my desktop. The same issue remains.

[17.06.2020, 10:43:56.821]: Starting analysis of C:\Users\Adam\Desktop\AIPics/aiDriveway.20200617_104356828.jpg
[17.06.2020, 10:43:56.822]: (1/6) Uploading image to DeepQuestAI Server
[17.06.2020, 10:43:56.835]: (2/6) Waiting for results
[17.06.2020, 10:43:56.837]: (3/6) Processing results:
[17.06.2020, 10:43:56.838]: System.NullReferenceException | Object reference not set to an instance of an object. (code: -2147467261 )
[17.06.2020, 10:43:56.839]: ERROR: Processing the following image 'C:\Users\Adam\Desktop\AIPics/aiDriveway.20200617_104356828.jpg' failed. Failure in AI Tool processing the image.
 

B-Murda

Getting the hang of it
Joined
Jun 16, 2020
Messages
32
Reaction score
26
Location
USA
The next thing that would leave is the AI server.
Is it running local or docker? Have you tried re-doing that? If you're running it as the windows app try the docker one if you have a way. If docker try the local/windows one and see if you can narrow it down.

I'm not sure beyond so we'll have to see what our good friend here thinks.
I've thrown 5meg 4k images at mine even and have the AI server set to high accuracy mode even which pushes it harder and don't have any issues with processing. I am running the 1.67 AI tool though, if you're not maybe try that one. You can get it directly on GIT. It may fix something the 1.65 doesn't.
 

neile

Getting the hang of it
Joined
May 15, 2020
Messages
132
Reaction score
67
Some other ideas:

1. The forward slash in the path is causing issues
2. You're using the NOAVX image and didn't register a developer license with it. Try hitting port 5000 on the Deepstack container to see if it asks for a developer license.
 

arg07

n3wb
Joined
Jun 16, 2020
Messages
8
Reaction score
0
Location
Toronto
The deepstack server is running on docker. I had it previously running on my windows machine, but the AI tool couldn't even access Deepstack. In my log file, the process never got past step 1 of 6.

I grabbed 1.67 from git and same issue persists.

I've tried changing the direction of the slashes in the AI Tool. Same issue persists.

I am using the noavx version. I did put in the api key the first time I accessed the webpage at the port I designated. When i go to that page now it doesn't ask for the key anymore which is I think what I should be seeing
 

pubby72

n3wb
Joined
Dec 8, 2019
Messages
1
Reaction score
0
Location
canada
I am having trouble with AI Tool sending the trigger command. It works when I copy and paste into browser, but not when AI Tool does a positive ID. Any ideas?
 
Joined
May 23, 2020
Messages
6
Reaction score
0
Location
Louisiana
This may be nothing, but in windows docker,it runs in 2 modes linux platform or windows platform, I'm running my deepstack docker in linux platform. I've never tried it running in windows platform, don't know if it would run perfectly or run with errors in windows platform.
if you are using docker desktop gui rick click you should see something. I use the command line i specify volume mount point, which I can't do in docker desktop.
i also mapped the port to 8080 for AI Tool to use. e:\dockerData is folder i precreated before running docker for deepquestAI to store whatever data it wants there permanently.

i got this working only couple weeks ago, though the image I downloaded 5 weeks ago.

docker run --platform linux -dti --name "deepquestAI" --restart always --net="bridge" -v e:/dockerData:/datastore -e MODE=Medium -e VISION-SCENE=True -e VISION-FACE=True -e VISION-DETECTION=True -p 8080:5000 deepquestai/deepstack:latest
@pnakashian THANK YOU THANK YOU THANK YOU!! FINALLY GOT IT WORKING. Pretty excited now i can actually mess with it. Anyone having trouble with the stupid " Object reference not set to an instance of an object. (code: -2147467261 ) ERROR: Processing the following image 'E:\aiinput/FCSD.20200601_161832518.jpg' failed. Failure in AI Tool processing the image."

TRY THIS! IT WORKED FOR ME! THANK YOU AGAIN!!!
 
Joined
May 9, 2020
Messages
9
Reaction score
0
Location
USA
Thank you for this tutorial ! This has made blue iris so more useful. Less noise and more legitimate notifications.
I unfortunately have no developer experience, however it would be awesome to see your tool expanded a little more. Why not add the ability to do license plate detection Tbar can log data to a database or flat file. I am going to continue to poke around with Home Assistant to see if I can do it there because I could also log it to that database. Love the idea that this could all happen locally using one stack.
thanks again for this awesome utility !
 
Joined
Jun 12, 2020
Messages
12
Reaction score
3
Location
Indiana
I am now getting errors in AI tool. I tried restarting the service as well as renaming the history.csv to history.csv.old I've since renamed the original, but continue to get errors in the logs. Has anyone else ran across this problem?

.12.2019, 14:37:46]: ERROR: Can't write to cameras/history.csv!
[17.12.2019, 14:37:46]: ERROR: Can't write to cameras/history.csv!
[17.12.2019, 14:37:46]: ERROR: Can't write to cameras/history.csv!
[17.12.2019, 14:37:46]: ERROR: Can't write to cameras/history.csv!
[17.12.2019, 15:04:45]: ERROR: Can't clean the cameras/history.csv!
[17.12.2019, 15:05:32]: ERROR: Can't clean the cameras/history.csv!
[17.12.2019, 15:12:22]: ERROR: Can't clean the cameras/history.csv!
[17.12.2019, 15:12:37]: ERROR: Can't clean the cameras/history.csv!
Were you ever able to solve this issue? I'm getting this error and haven't been able to find a solution in the thread.
 

pmcross

Pulling my weight
Joined
Jan 16, 2017
Messages
371
Reaction score
185
Location
Pennsylvania
Were you ever able to solve this issue? I'm getting this error and haven't been able to find a solution in the thread.
I did, I ended up going back a version. I copied the contents of the extracted folder, excluding the cameras directory, to the folder that AI Tool was in and this fixed my issue. Since then I’ve upgraded to the beta version that @GentlePumpkin released a few days ago and it is working well. I followed the same process to upgrade to the beta version.


Sent from my iPhone using Tapatalk
 

neile

Getting the hang of it
Joined
May 15, 2020
Messages
132
Reaction score
67
Why not add the ability to do license plate detection
The AI detection part is wholly dependent on what Deepstack offers. They don't offer license plate detection so neither AI Tool nor my Docker variant can do it.
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,304
Reaction score
3,282
Location
United Kingdom
Just started looking into this, I'm going to apologise as I've not read this entire thread, just the first and last few pages but I have a few annoying/noddy questions.

DeepQuestAI is now DeepStackAI? When I registered I didn't get an API key, just what I think is a product key. Does this affect/impact the product and what I want from it?


I run my system headless, I've configured AITool.exe to run as a service using NSSM but what do people do about DeepStackAI which needs to be manually started and the key and port number entered each time? Wondering if I can just disconnect from my RDP session if that will leave DeepStackAI still running.

Still getting my head around it so wish me luck :D
 

pmcross

Pulling my weight
Joined
Jan 16, 2017
Messages
371
Reaction score
185
Location
Pennsylvania
Just started looking into this, I'm going to apologise as I've not read this entire thread, just the first and last few pages but I have a few annoying/noddy questions.

DeepQuestAI is now DeepStackAI? When I registered I didn't get an API key, just what I think is a product key. Does this affect/impact the product and what I want from it?


I run my system headless, I've configured AITool.exe to run as a service using NSSM but what do people do about DeepStackAI which needs to be manually started and the key and port number entered each time? Wondering if I can just disconnect from my RDP session if that will leave DeepStackAI still running.

Still getting my head around it so wish me luck :D
Deepstack recently went from paid (with a free offering for personal use) to open source. I’m not sure how that affects the activation, but I never entered an API key, but I did enter an activation key. This only needs to be entered once.

I run my system headless as well. Deepstack will run fine after disconnecting your RDP session. The trouble with Deepstack on Windows is with a reboot as you have to run the application after a reboot, there is no service for it. If you run it in Docker (not sure about Docker on Windows) you can have it start automatically when the OS boots (I’m running in Docker in Ubuntu and this is how mine is configured). I hope that this helps.


Sent from my iPhone using Tapatalk
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,304
Reaction score
3,282
Location
United Kingdom
I’ve got it all installed and working, am playing around with it, have cloned all 6 of my cams and left if all running.

I have noticed that it adds a significant load to the PC, mines now at 68% CPU whereas with substreams it was sitting at around 10%. Is that people’s experience?

Edit: Might have to disable it, it’s randomly peaking at 98% CPU?
 
Last edited:

pmcross

Pulling my weight
Joined
Jan 16, 2017
Messages
371
Reaction score
185
Location
Pennsylvania
I’ve got it all installed and working, am playing around with it, have cloned all 6 of my cams and left if all running.

I have noticed that it adds a significant load to the PC, mines now at 68% CPU whereas with substreams it was sitting at around 10%. Is that people’s experience?
I haven't seen much of an increase by cloning cameras. You should check the status to see if only one stream is pulling for each camera-this is how it should be. Also, you should disable all overlays on the cloned cameras as well as audio (if your camera supports audio). This CPU increase may be due to Deepstack (if you're running on the same machine). Deepstack is very CPU intensive. I moved Deepstack to a separate server for this reason.
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,304
Reaction score
3,282
Location
United Kingdom
Checked in performance manager and DeepStack is using in excess of 35% and Python is using around 30%.
 
Joined
May 27, 2020
Messages
13
Reaction score
1
Location
Idaho Springs, Colorado
FWIW - i was running the windows version of deepstack and it was taking about 65% of my CPU on average. I installed docker for windows and loaded the container version and CPU usage from deepstack went down to 25% on average. Image processing went from about 850ms per image to 700ms. So it seems that version takes a lot less resources and runs a bit faster too. YMMV of course.....
 
Joined
Jun 12, 2020
Messages
12
Reaction score
3
Location
Indiana
I did, I ended up going back a version. I copied the contents of the extracted folder, excluding the cameras directory, to the folder that AI Tool was in and this fixed my issue. Since then I’ve upgraded to the beta version that @GentlePumpkin released a few days ago and it is working well. I followed the same process to upgrade to the beta version.


Sent from my iPhone using Tapatalk
Well I removed AI Tool 1.65, installed 1.64 and rebuilt my cameras. I am still getting the error (ERROR: Can't write to cameras/history.csv!). I don't know what to do.

I'm also running into an issue with Mqtt and push notifications. The cameras are triggering the camera to record and I can get Mqtt messages/push notifications when testing but when the camera triggers, it doesn't post to Matt or push.
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,304
Reaction score
3,282
Location
United Kingdom
I disabled deepstack for the time being as it was pegging my CPU at 100%, quite surprised, not the greatest but not a bad CPU i5-6500.

Might look at running it in socket for Windows to see if as posted above that runs any better.
 
Top