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

mlines

n3wb
Joined
Aug 28, 2016
Messages
1
Reaction score
0
So I am switching from Sentry and working to get DeepquestAI configured. Have a question on the DeepQuest server - how do I get this to autostart and run in the background when the PC is rebooted? I have setup AItool to run as a service but that does no good without the DeepQuest server. Will the NSSM tool work with this? I'm probably missing something obvious ...
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,287
Reaction score
3,252
Location
United Kingdom
So I am switching from Sentry and working to get DeepquestAI configured. Have a question on the DeepQuest server - how do I get this to autostart and run in the background when the PC is rebooted? I have setup AItool to run as a service but that does no good without the DeepQuest server. Will the NSSM tool work with this? I'm probably missing something obvious ...
If you are talking about DQ for Windows then I tried a load of things to get it to auto start and none worked which is why I moved over to docker. Docker also saves a load of CPU time as well
 

ReXX

Young grasshopper
Joined
Dec 28, 2018
Messages
47
Reaction score
15
Location
Denmark
So I am switching from Sentry and working to get DeepquestAI configured. Have a question on the DeepQuest server - how do I get this to autostart and run in the background when the PC is rebooted? I have setup AItool to run as a service but that does no good without the DeepQuest server. Will the NSSM tool work with this? I'm probably missing something obvious ...
See [tool] [tutorial] Free AI Person Detection for Blue Iris
 

gazoo

n3wb
Joined
Dec 11, 2017
Messages
27
Reaction score
0
Ok, Regarding auto-starting Docker/DeepStack this is the only solution I could find:

I downloaded the latest AlwaysUp free trial software. Started it up, added Docker located in /Program Files/Docker/Docker/Frontend/Docker Desktop.exe (should be a 100+MB file)
Ticked the box at top (instead of running the application in Local System Account.....) and put in MY username and password into the boxes.
I then right clicked on the docker entry in AlwaysUp and started the service. You may or may not have to reboot.
That's it.

When I log back in, I get a message from the docker trying to start up saying it's already up (AlwaysUP makes sure of that).

This worked, along with using NSSM for AiTool. I suppose you could use this for AiTool too but I didn't want to rock the boat.

Now, I experimented with NSSM for Docker, using the exact same parameters that AlwaysUp spawned in services.msc, but it just wouldn't work at all. SO I guess I'll pay the $50 ransom to have AI detection.

I don't understand how others say "it just works for me". It does NOT for me. Latest Windows 10 Pro version on a Supermicro server with Xeon processor 8 core.
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,287
Reaction score
3,252
Location
United Kingdom
The initial screenshots look like what I have.

Stop the AlwaysUp service, set it to Disabled, then set the normal Docker service to Disabled, then restart the machine. Log back on again and start Docker Desktop from the icon on your desktop, it should launch.

Then close it, set the normal Docker service to Automatic, click Apply, then Ok then click the little Start link near the top left. Then try launching Docker using the icon on your desktop, you should get a message to say it’s already running.
 

OccultMonk

Young grasshopper
Joined
Jul 25, 2020
Messages
72
Reaction score
13
Location
A Mountain hilltop
Is there a solution for the Nvidia docker crashing (Image not able to upload image anymore)? Would it be a solution to let docker restart the script every 30min or 1 hour so it keeps running and is this possible?
 
Last edited:

blulite

n3wb
Joined
Aug 2, 2020
Messages
8
Reaction score
3
Location
FLorida
Take the two following url templates, replace {user} and {password} and add both separated by comma to AI Tool:
Code:
http://localhost:80/admin?camera=[camera]&trigger&user={user}&pw={passwort}
http://localhost:80/admin?camera=[camera]&flagalert=1&trigger&memo=[summary]&user={user}&pw={passwort}
I'm confused by the instructions. Are both lines required for Trigger URL? Can't I just use the second one? Don't they both trigger and one flags an alert?
 

pmcross

Pulling my weight
Joined
Jan 16, 2017
Messages
371
Reaction score
185
Location
Pennsylvania
I don't know. Who can I download noavx version for win or only docker?
The noavx version is only supported in Docker, not Windows natively.

Not sure if you're going to run Docker Desktop or run Docker inside of a Linux box, but for Docker Desktop run the following commands to pull and run the noavx version:

docker pull deepquestai/deepstack:noavx

docker run —name="deepstack" -e TZ=America\New_York -e VISION-DETECTION=True -v localstorage:/datastore -p 80:5000 --restart always deepquestai/deepstack:noavx
 

blazin912

Getting the hang of it
Joined
Sep 15, 2019
Messages
168
Reaction score
41
Location
MA
The initial screenshots look like what I have.

Stop the AlwaysUp service, set it to Disabled, then set the normal Docker service to Disabled, then restart the machine. Log back on again and start Docker Desktop from the icon on your desktop, it should launch.

Then close it, set the normal Docker service to Automatic, click Apply, then Ok then click the little Start link near the top left. Then try launching Docker using the icon on your desktop, you should get a message to say it’s already running.
When following this, upon trying to launch docker desktop manually I get "Service is not running, Docker Desktop Service is not running, would you like to start it? Windows will ask you for elevated access." Same as I get when the service is enabled and set to automatic. I should note that Windows never asks me for elevated access if I click start.

I understand this can work as I just threw docker on another non-BI system with windows 10 and it just worked. I used an old Win 7 Pro key and upgraded my BI PC from Win10 Home to Pro.. nope same issue.. really scratching my head here..

I had to enable virtualization in my BIOS initially, anything else I may need to do that it's not telling me about? I also have Windows 10 set to auto login.. is that the problem??
 

blazin912

Getting the hang of it
Joined
Sep 15, 2019
Messages
168
Reaction score
41
Location
MA
Changed from automatic to automatic delayed start.. seems to be working? Gotta love non-realtime triggered systems. This is why we don't use "time".. race conditions are real people. Especially on repurposed EOL hardware..
 

gazoo

n3wb
Joined
Dec 11, 2017
Messages
27
Reaction score
0
Changed from automatic to automatic delayed start.. seems to be working? Gotta love non-realtime triggered systems. This is why we don't use "time".. race conditions are real people. Especially on repurposed EOL hardware..
This did not work for me either
 

blazin912

Getting the hang of it
Joined
Sep 15, 2019
Messages
168
Reaction score
41
Location
MA
I have to come to terms that my aging pc is not capable of running BI and this workflow. I got it going but any image processing drive the CPU to 100% making the ability to respond to other events unreliable. I'll considering upgrading the box but for the time being I'll deal with my false triggers, more responsive and reliable system... :(
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,287
Reaction score
3,252
Location
United Kingdom
I have to come to terms that my aging pc is not capable of running BI and this workflow. I got it going but any image processing drive the CPU to 100% making the ability to respond to other events unreliable. I'll considering upgrading the box but for the time being I'll deal with my false triggers, more responsive and reliable system... :(
What CPU do you have?

With auto logon does that mean that the user has no password?
 
Last edited:

blazin912

Getting the hang of it
Joined
Sep 15, 2019
Messages
168
Reaction score
41
Location
MA
What CPU do you have?

With auto logon does that mean that the user has no password?
Auto logon there is a password but it is not required.

CPU is i5 3570 w/ 4GB RAM
CPU normally hovers around 20-40% without this load. RAM 1GB
Maybe the speed is related to my HDDs they are ancient too. This was some old PC that hadn't been used for a few years, I swapped out the CPU from a scavenge seller. All hardware tested through prime95 and stable, but it's definitely slow. Very, very, slow
 

jseybert

n3wb
Joined
Aug 23, 2016
Messages
12
Reaction score
2
In addition to pmcross' answer:

1. Ist BI on port 81?
2. {user} and {pw} need to be replaced, but not [summary]
3. I'm not quite sure, but it could be that there must be at least a few milliseconds between creating a trigger and tagging it with memo=[summary]. So triggering and adding the summary must happen with two subsequent url calls
Thank you all for the suggestions. I finally got a chance to get back to working on this today - been a busy week!:) I have tried various iterations of the memo variable in the URL to no avail. GentlePumpkin, to answer your questions:

1. Ist BI on port 81? Yes, and Deepstack is on Port 83
2. {user} and {pw} need to be replaced, but not [summary] Confirmed
3. I'm not quite sure, but it could be that there must be at least a few milliseconds between creating a trigger and tagging it with memo=[summary]. So triggering and adding the summary must happen with two subsequent url calls Not sure I followed this. Are you suggesting that the delay between trigger and tag would generate the 2 URL's, or that I NEED to create 2 URL's? How can I go about checking to see if this is happening?

I don't know if this is related to this or not (triggering delays) but it seems that one of my cameras will only randomly generate the alarm clip in BI. It shows up in the AITool history, but I will only get the clip in BI maybe 1 out of 10 times (seems random though). The URL is configured the same as the other cameras, and I keep checking BI to see if something is configured differently for that camera, but I can't seem to see any differences.

Thanks again for everyone's help!
 
Top