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

dnsource

n3wb
Joined
Apr 10, 2018
Messages
21
Reaction score
3
Location
Miami, FL
I stopped the docker, ended up going back to the Deepstack windows server APP and ran this script to Enable AVX : "bcdedit /set xsavedisable 0 "

ITS WORKING NOW!!! :headbang:
 

Yangrek

n3wb
Joined
Feb 4, 2020
Messages
14
Reaction score
2
Location
Belarus
Hello, I'm running DeepQuest Server on Win7 through Docker Toolbox. And I'm getting following error when trying to get response from DeepQuest Server:

[12.07.2020, 20:28:30.284]: Starting analysis of D:\BlueIris\AI Input\PARKOVKA_SD.20200712_202830268.jpg
[12.07.2020, 20:28:30.288]: (1/6) Uploading image to DeepQuestAI Server
[12.07.2020, 20:28:30.294]: (2/6) Waiting for results
[12.07.2020, 20:28:30.299]: (3/6) Processing results:
[12.07.2020, 20:28:30.305]: System.NullReferenceException |Object reference not set to an instance of an object.. (code: -2147467261 )
[12.07.2020, 20:28:30.310]: ERROR: Processing the following image 'D:\BlueIris\AI Input\PARKOVKA_SD.20200712_202830268.jpg' failed. Failure in AI Tool processing the image.

Docker is run with following command:
docker run -e VISION-DETECTION=True -v localstorage:/datastore -p 123:5000 \
deepquestai/deepstack

Docker QuickStart Terminal logs following text at the same time:

[GIN] 2020/07/12 - 17:43:04 | 403 | 26.446s | 192.168.99.1 | POST /v
1/vision/detection


What is wrong?
 

pmcross

Pulling my weight
Joined
Jan 16, 2017
Messages
371
Reaction score
185
Location
Pennsylvania
Hello, I'm running DeepQuest Server on Win7 through Docker Toolbox. And I'm getting following error when trying to get response from DeepQuest Server:

[12.07.2020, 20:28:30.284]: Starting analysis of D:\BlueIris\AI Input\PARKOVKA_SD.20200712_202830268.jpg
[12.07.2020, 20:28:30.288]: (1/6) Uploading image to DeepQuestAI Server
[12.07.2020, 20:28:30.294]: (2/6) Waiting for results
[12.07.2020, 20:28:30.299]: (3/6) Processing results:
[12.07.2020, 20:28:30.305]: System.NullReferenceException |Object reference not set to an instance of an object.. (code: -2147467261 )
[12.07.2020, 20:28:30.310]: ERROR: Processing the following image 'D:\BlueIris\AI Input\PARKOVKA_SD.20200712_202830268.jpg' failed. Failure in AI Tool processing the image.

Docker is run with following command:
docker run -e VISION-DETECTION=True -v localstorage:/datastore -p 123:5000 \
deepquestai/deepstack

Docker QuickStart Terminal logs following text at the same time:

[GIN] 2020/07/12 - 17:43:04 | 403 | 26.446s | 192.168.99.1 | POST /v
1/vision/detection


What is wrong?
This seems like an issue with AI Tool. What object types do you have selected in AI Tool?


Sent from my iPhone using Tapatalk
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
If you extract the contents of AI Tool and copy it into the directory where AI Tool resides (don't copy the cameras folder) your cameras settings will stay.

Unfortunately I don't because I had to roll back to an older version of BI due to bugs in the new release. The version that I am running now doesn't include the new memo feature.
The more I tweak, the more I'm liking this AI tool better than Sentry. The only "knock" is I do like the "S" that Sentry put on BI, so hopefully they fix whatever issue this was!


Just for info.

For some reason, some weeks ago, when I tried to run aitool.exe it looked as if the program was starting but then nothing happened and no errors. It would run ok as a service though so I didn't worry about it.

Today I tried to run another exe file and same thing. Anyway looking into that I found what was causing it.
How are you running AITool as service? I don't see that option anywhere in AITool?
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Also, anyone figure out a way to start Deepstack with Windows when the server is rebooted? Always have to remember to open it, set port to 81, choose the right detection, copy and paste API key...ugh!
 

Cameraguy

Known around here
Joined
Feb 15, 2017
Messages
1,486
Reaction score
1,133
Also, anyone figure out a way to start Deepstack with Windows when the server is rebooted? Always have to remember to open it, set port to 81, choose the right detection, copy and paste API key...ugh!
Same here
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,311
Reaction score
3,298
Location
United Kingdom
Also, anyone figure out a way to start Deepstack with Windows when the server is rebooted? Always have to remember to open it, set port to 81, choose the right detection, copy and paste API key...ugh!
This is why I run Docker Desktop and run the docker version of DQ, doing this also lowered my overall CPU usage.
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,311
Reaction score
3,298
Location
United Kingdom
The more I tweak, the more I'm liking this AI tool better than Sentry. The only "knock" is I do like the "S" that Sentry put on BI, so hopefully they fix whatever issue this was!




How are you running AITool as service? I don't see that option anywhere in AITool?
There is a memo function, not used it myself but that is supposed to add memo text to clips?
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,311
Reaction score
3,298
Location
United Kingdom
Have a read of this post for info on the URL to use for memo text

 

Cameraguy

Known around here
Joined
Feb 15, 2017
Messages
1,486
Reaction score
1,133
This is why I run Docker Desktop and run the docker version of DQ, doing this also lowered my overall CPU usage.
I try to install docker on my pc and I keep getting this pop-up when starting the docker see attached picture


gonna try all this tonight

 

Attachments

Last edited:

ReXX

Young grasshopper
Joined
Dec 28, 2018
Messages
47
Reaction score
15
Location
Denmark
Also, anyone figure out a way to start Deepstack with Windows when the server is rebooted? Always have to remember to open it, set port to 81, choose the right detection, copy and paste API key...ugh!
I have it running as services, so it auto starts on reboot.

It's 3 services depending on each other to start in correct order.

C:\DeepStack\redis\redis-server.exe

C:\DeepStack\interpreter\python.exe ../intelligence.py -MODE=Medium -VFACE=False -VSCENE=False -VDETECTION=True

C:\DeepStack\server\server.exe" -VISION-FACE=False -VISION-SCENE=False -VISION-DETECTION=True -ADMIN-KEY= -API-KEY= -PORT=88
 
Last edited:

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,311
Reaction score
3,298
Location
United Kingdom
I try to install docker on my pc and I keep getting this pop-up when starting the docker see attached picture


gonna try all this tonight

Did you try the suggestions to install the hyper-v feature and enable virtualisation in the BIOS?

For me, my BI PC is on W10 2004 which now has support for WSL2 (windows subsytem for Linix 2) which is what I opted to use. Did have a right royal struggle to enable virtualisation in the BIOS though as I run headless and the PC is in the loft but eventually found a HP utility that allows you to change BIOS options from the command line, so used that, then restarted, then installed Docker which enabled WSL2 etc....
 

Cameraguy

Known around here
Joined
Feb 15, 2017
Messages
1,486
Reaction score
1,133
Did you try the suggestions to install the hyper-v feature and enable virtualisation in the BIOS?

For me, my BI PC is on W10 2004 which now has support for WSL2 (windows subsytem for Linix 2) which is what I opted to use. Did have a right royal struggle to enable virtualisation in the BIOS though as I run headless and the PC is in the loft but eventually found a HP utility that allows you to change BIOS options from the command line, so used that, then restarted, then installed Docker which enabled WSL2 etc....
I haven't tried it yet. Its working so well right now I'm affraid to screw it up messing with it haha

But I do want deepstack to run as a service and not have to manually restart everytime there is a reboot..

Approximately how much cpu did it save you..
My bi runs around 30 cpu but kicks into the 90s when deepstack is working on analyzing a photo
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
I haven't tried it yet. Its working so well right now I'm affraid to screw it up messing with it haha

But I do want deepstack to run as a service and not have to manually restart everytime there is a reboot..

Approximately how much cpu did it save you..
My bi runs around 30 cpu but kicks into the 90s when deepstack is working on analyzing a photo
I have 4 cameras on BI right now, 3 of them set up with deepstack/AI tool. BI typically uses around 15% CPU on average, deepstack and AI are neglible when not processing an image, and deepstack jumps to around 25% while processing images. With my ALPR service running, total CPU averages around 25-30% then spikes by another 25% when running deepstack. So far so good!
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
I have it running as services, so it auto starts on reboot.

It's 3 services depending on each other to start in correct order.

C:\DeepStack\redis\redis-server.exe

C:\DeepStack\interpreter\python.exe ../intelligence.py -MODE=Medium -VFACE=False -VSCENE=False -VDETECTION=True

C:\DeepStack\server\server.exe" -VISION-FACE=False -VISION-SCENE=False -VISION-DETECTION=True -ADMIN-KEY= -API-KEY= -PORT=88
So you've manually added that into your Startup routine via the sc command?

 
Top