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

@Village Guy just curious, most people seem to be running everything using the DOCKER version while the few like me (who are scared to try LOL) are still running everything with Windows, I'm using Version 2.0.195.7637 Build 30/11/2020. My question is are you and the other folks that are actually doing the heavy lifting (writing the code) Thanks everyone BTW, optimizing it more toward the DOCKER side than the Windows side? I ask because I have noticed that my alerts while still working are taking a super long time to show up vs. previous builds. talking about recognition to alert (telegram) sometimes it will take 5 min before I see it pop up?
I cannot speak for anyone else but I use docker. IMHO it is a much better solution and very easy to update. Docker itself will actually autoupdate and with a simple command line you can change the version of deepstack that it is running. On top of this it all starts up without intervention which is crucial for me because I'm living in Spain for winter and my security system is back home in the UK.
 
  • Like
Reactions: balucanb
I cannot speak for anyone else but I use docker. IMHO it is a much better solution and very easy to update. Docker itself will actually autoupdate and with a simple command line you can change the version of deepstack that it is running. On top of this it all starts up without intervention which is crucial for me because I'm living in Spain for winter and my security system is back home in the UK.
Cool beans- (Love Spain BTW) I have been working from home since March so "currently" the auto start thing everyone is always worried about is non-issue for me...since I N E V E R L E A V E M Y H O U S E anymore. LOL. I am going to attempt to try the whole DOCKER thing this weekend, I assume I need to un install (back up my current stuff just in case) everything - AI Tool, Deepstack windows version, etc. and start with a clean slate?
 
Cool beans- (Love Spain BTW) I have been working from home since March so "currently" the auto start thing everyone is always worried about is non-issue for me...since I N E V E R L E A V E M Y H O U S E anymore. LOL. I am going to attempt to try the whole DOCKER thing this weekend, I assume I need to un install (back up my current stuff just in case) everything - AI Tool, Deepstack windows version, etc. and start with a clean slate?
No not at all. Just remove the widows version of deepstack and ensure you setup the docker version with the correct port noted in the command line and you should be all set. AITool will start up without the tab for deepstack when you run under docker!
 
  • Like
Reactions: balucanb
My Deepstack is running in Docker. It's configured using "deepquestai/deepstack:latest" so it always pulls the latest version.
 
My Deepstack is running in Docker. It's configured using "deepquestai/deepstack:latest" so it always pulls the latest version.
Ok I am trying to get the DOCKER thing set up- somehow I have gotten Docker desktop loaded, ensured the virtualization thingy checked and done, updated to WSL 2, opened powershell as admin and ran the pull docker command using what you posted xxx.latest command. NOW WHAT? I am trying to follow the instructions from pg 1 right now I am trying to remember how to get the API key but for some reason the deepstack webpage just takes me to a docs page? did it change and we don't need this API anymore? TIA. **UPDATE ima idiot, I think I was at the wrong web address- MTF. NOPE try to go to DeepQuest AI the page loads but any clicks further and pages do not load???
 
Last edited:
So this is still kicking my XXX. I understand this is not hard...if you know what you are doing...I do not fall into that group. I am going to repeat, with less freak out and more clarity of what I have done so far so someone here can help push me to the next step. 1. trying to follow instructions on pg 1 but they seem to be outdated. 2. before loading DOCKER I checked that virtualization was enabled and I loaded WSL 1/2, in Powershell running as admin I ran the pull docker deepquestai/deepstack:latest 3. installed docker desktop since docker toolbox says it is depreciated. 4. the image is what it is listed on the containers/apps tab in DOCKER- I assume this is the container with deepstack in it? 5. where do I run the docker run --restart=always -e VISION-DETECTION=True -v localstorage:/datastore -p 80:5000 deepquestai/deepstack command? I don't see any terminal like page 1 instuctions say, if I hover over the entry on the images page there is a cli button- tried running it there no luck and tried running in powershell after typing WSL- (I am obviously just grabbing at straws here!!). 6. FYI in DOCKER on the images tab under local it shows deepquestai/deepstack says it is in use, ther are no entries on the remote repo. tab. I hope I have puked enough information here that ya'all can help me. THANK YOU.

EDIT- I must have mis-typed something?? I ran the the docker run --restart=always -e VISION-DETECTION=True -v localstorage:/datastore -p 80:5000 deepquestai/deepstack command again in WSL and I got the info I expected to see. I then entered the 192.168.99.100 in my browser but NO LUCK- this site can not be reached?? now what?

container.PNG
 
Last edited:
@balucanb Try using a port other than 80. I use port 8383, and BI uses port 8282. Just a personal preference of mine to not have anything close to a default port of anything else.

Code:
docker run --restart=always -e MODE=High -e VISION-DETECTION=True -v localstorage:/datastore -p 8383:5000 --name deepstack deepquestai/deepstack:latest

Hit the trash can in the Docker Desktop next to the container you have running. Then, in PowerShell just past the code above. This will create a new container and Deepstack will be running on port 8383.
 
Last edited:
@balucanb Try using a port other than 80. I use port 8383, and BI uses port 8282. Just a personal preference of mine to not have anything close to a default port of anything else.

Code:
docker run --restart=always -e MODE=High -e VISION-DETECTION=True -v localstorage:/datastore -p 8383:5000 --name deepstack deepquestai/deepstack:latest

You'll want to delete the container you have currently running by hitting the trash can, then use PowerShell to run the code I posted.
Do I need to shut it all down first, then run the command with a different port? Why would I change the port (not questioning you, I have no clue). I am not even sure it is all up and ready to go- I don't think it is, I went ahead and started AI-Tool and the deepstack tab is gone now, log says not installed as a window app no docker support yet (I uninstalled it when I tried this docker thing) I assume the tab being gone is normal since I switched to DOCKER? Thanks by way.
 
Do I need to shut it all down first, then run the command with a different port? Why would I change the port (not questioning you, I have no clue). I am not even sure it is all up and ready to go- I don't think it is, I went ahead and started AI-Tool and the deepstack tab is gone now, log says not installed as a window app no docker support yet (I uninstalled it when I tried this docker thing) I assume the tab being gone is normal since I switched to DOCKER? Thanks by way.

Yes, the Docker tab will be gone, normal. Not using port 80 has always been my practice for everything that wasn't supposed to be a normal webserver.
Hit the trash can (image attached) in the Docker Desktop next to the container you have running. Then, in PowerShell just paste the code above. This will create a new container and Deepstack will be running on port 8383. The second attached image shows my Deepstack running on 192.168.1.5:8383 (it's not 127.0.0.1 because I have it running on a different machine than AITools.)
 

Attachments

  • Capture.PNG
    Capture.PNG
    15.7 KB · Views: 23
  • Capture01.PNG
    Capture01.PNG
    5.9 KB · Views: 21
  • Like
Reactions: balucanb
Yes, the Docker tab will be gone, normal. Not using port 80 has always been my practice for everything that wasn't supposed to be a normal webserver.
Hit the trash can (image attached) in the Docker Desktop next to the container you have running. Then, in PowerShell just paste the code above. This will create a new container and Deepstack will be running on port 8383. The second attached image shows my Deepstack running on 192.168.1.5:8383 (it's not 127.0.0.1 because I have it running on a different machine than AITools.)
I will try that. Thanks. Also.... apparently I am an ass-hat who should be in time-out. Note to self BEFORE posting for help, start all the elements of the project and see if it works or not!!! I still do not think I have completed all the steps but when I opened AI-tool to see what would happen, I walked around the cameras and...I am getting alerts sent to telegram. YEA. They are still taking longer than I think they should however- the main reason I wanted to try the DOCKER version was tp speed things up, the log shows almost instant action but the time from detection to me getting the msg in telegram is not as fast as I would like- Problem with telegram or AI-tool? Thanks again.
 
I will try that. Thanks. Also.... apparently I am an ass-hat who should be in time-out. Note to self BEFORE posting for help, start all the elements of the project and see if it works or not!!! I still do not think I have completed all the steps but when I opened AI-tool to see what would happen, I walked around the cameras and...I am getting alerts sent to telegram. YEA. They are still taking longer than I think they should however- the main reason I wanted to try the DOCKER version was tp speed things up, the log shows almost instant action but the time from detection to me getting the msg in telegram is not as fast as I would like- Problem with telegram or AI-tool? Thanks again.
That I do not know. If you click the empty white space in Docker between your container name and the four buttons you'll see something like the image attached. This shows that my image processing is taking around 220ms. This is acceptable to me. You could remove the -e MODE=High from the Docker Run code to run Deepstacks in medium mode, or change it to -e MODE=Low to run it in low mode. Lower is faster but less accurate.
 

Attachments

  • Capture.PNG
    Capture.PNG
    206.2 KB · Views: 34
Can the AI tool detect a specific vehicle ? Like if I wanted to set up a automation with Home assistant change status when I'm home are not home with detections of my vehicle from my cameras with AI tool is this possible?

Sent from my SM-G965U using Tapatalk
 
Can the AI tool detect a specific vehicle ? Like if I wanted to set up a automation with Home assistant change status when I'm home are not home with detections of my vehicle from my cameras with AI tool is this possible?

Sent from my SM-G965U using Tapatalk
No, definitely not. It's just not capable of that. I personally have our phones as presence sensors through Smartthings

Sent from my Pixel 3 using Tapatalk
 
Is this true for the Docker version? Wouldn't it just create another container that would be visible in the GUI and easily stopped?
I believe you would see it in the GUI, But some of the mentioned methods of running the deepstack server (powershell) don't use the GUI, so worth mentioning, and important for any method really. I didn't even know there was a GUI for some time :)
 
I believe you would see it in the GUI, But some of the mentioned methods of running the deepstack server (powershell) don't use the GUI, so worth mentioning, and important for any method really. I didn't even know there was a GUI for some time :)
Every time that I have started a Docker container via Powershell it has shown up in the Docker for Windows dashboard GUI.
 
  • Like
Reactions: cscoppa