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

cjowers

Young grasshopper
Joined
Jan 28, 2020
Messages
83
Reaction score
12
Location
AUS
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\baluc\\AppData\\Local\\Temp\\DeepStack\\f28c9002-abb6-4e2e-a531-e7aa45b48e81'
that looks like the deepstack server api key file.
edit- on 2nd thought, maybe that's just a standard windows temp filename format... i got no idea

is the file there? permission / access issue maybe? are you running everything as admin?
does it run at all?
 
Last edited:

Quru

n3wb
Joined
Jan 11, 2021
Messages
2
Reaction score
0
Location
EE
Hi, I just installed Blue Iris version 5.3.7.12 (demo mode) and I am trying to configure this. AI Tool won't recognize DeepStack. I have tried to manually run it in powershell and start it from the "DeepStack" tab in AI Tool. DeepStack version: DeepStack-Installer-CPU.2021.01.beta.exe.

OnGuard works, it recognizes DeepStack started from powershell and the DeepStack web page is also running. I have tried restarting the computer. Server.exe, python.exe or redis-server.exe are not running when I start DeepStack. I can't install it in docker because I need to enable Hyper-V in bios and I can't access the computer right now.

1610454283588.png

We don't need the DeepStack signup (api key) anymore and the beta version is their main download link in docs Using DeepStack with Windows 10 (CPU and GPU) | DeepStack v1.1.2 documentation
 
Last edited:

Sireone

Young grasshopper
Joined
Jul 29, 2016
Messages
32
Reaction score
5
Hi, I just installed Blue Iris version 5.3.7.12 (demo mode) and I am trying to configure this. AI Tool won't recognize DeepStack. I have tried to manually run it in powershell and start it from the "DeepStack" tab in AI Tool. DeepStack version: DeepStack-Installer-CPU.2021.01.beta.exe.

OnGuard works, it recognizes DeepStack started from powershell and the DeepStack web page is also running. I have tried restarting the computer. Server.exe, python.exe or redis-server.exe are not running when I start DeepStack. I can't install it in docker because I need to enable Hyper-V in bios and I can't access the computer right now.

View attachment 79473

We don't need the DeepStack signup (api key) anymore and the beta version is their main download link in docs Using DeepStack with Windows 10 (CPU and GPU) | DeepStack v1.1.2 documentation
AI Tools is looking for C:\DeepStack\server\server.exe The latest version of DeepStack changed this executable to deepstack.exe. Just rename it back to server.exe. That's it!
 

balucanb

Getting the hang of it
Joined
Sep 19, 2020
Messages
139
Reaction score
23
Location
TX
that looks like the deepstack server api key file.
edit- on 2nd thought, maybe that's just a standard windows temp filename format... i got no idea

is the file there? permission / access issue maybe? are you running everything as admin?
does it run at all?
It's running but deepstack errors out after a short while. Found the newest beta of deepstack last evening and installed it along with the newest build of AI Tool it has been running overnight, will check it later and see if that fixes the issue.
 

Quru

n3wb
Joined
Jan 11, 2021
Messages
2
Reaction score
0
Location
EE
AI Tools is looking for C:\DeepStack\server\server.exe The latest version of DeepStack changed this executable to deepstack.exe. Just rename it back to server.exe. That's it!
Actually this didn't fix the problem, still errors in AI Tools. I managed to enable Hyper-V without going to BIOS, I love Lenovo's tools. DeepStack Docker version now works with AI Tools, but I have performance issues with three 2560x1920 H265 cameras. I have I5-6400 with 8GB ram, I think I need more ram or it is because of the Demo version. I bought license, but still haven't got it :nervous:. It only sometimes captures the video when triggering, I have no idea whats going on. I configured settings using first post recommended settings, I only changed the trigger url to this.
 

balucanb

Getting the hang of it
Joined
Sep 19, 2020
Messages
139
Reaction score
23
Location
TX
It's running but deepstack errors out after a short while. Found the newest beta of deepstack last evening and installed it along with the newest build of AI Tool it has been running overnight, will check it later and see if that fixes the issue.
Replaced both deepstack and AI-TOOl with the latest versions and that took care of it. As I was perusing GitHub I see my problem was a known issue.
 

roojax

n3wb
Joined
Jan 11, 2021
Messages
1
Reaction score
0
Location
Canada
Any idea why items would get added to queue and never get out of the queue unless I close and re-open AI Tool? I have tried older and new version of VorlonCD with the same results. I checked through the issues on Git and didn't find anything similar.

Deepstack is hosted on docker and continues running without issues.

[13:55:05.931]: WaitForNextURL> ---- #1: Re-added known URL: [13:55:05.932]: WaitForNextURL> ...Found 1 AI URL's in settings.
[13:55:06.136]: OnCreatedAsync>
[13:55:06.137]: OnCreatedAsync> ====================== Adding new image to queue (Count=1): G:\aiinput\driveway.20210112_135506134.jpg
[13:55:08.137]: OnCreatedAsync>
[13:55:08.138]: OnCreatedAsync> ====================== Adding new image to queue (Count=2): G:\aiinput\driveway.20210112_135508134.jpg
..
[14:02:16.051]: OnCreatedAsync> ====================== Adding new image to queue (Count=45): G:\aiinput\driveway.20210112_140216048.jpg
[14:02:18.115]: OnCreatedAsync>
[14:02:18.117]: OnCreatedAsync> ====================== Adding new image to queue (Count=46): G:\aiinput\driveway.20210112_140218113.jpg
 

spammenotinoz

Pulling my weight
Joined
Apr 4, 2019
Messages
172
Reaction score
106
Location
Sydney
For those running the Windows GPU I noticed Deepstack only uses about 1% of the GPU processing power so this could be of interest if you run the VorlonCD version of AITool. Note AITool will only start one instance at the moment.
Can confirm this is working well with the version you supplied with 6 instances. Going beyond 6 works, but find I hit the Deepstack idle issue, ie: Deepstack seems to pause for 200-300ms, if it goes quiet for a while.

Had to launch from powershell, launching multiple instances from the CMD seemed to conflict with each other (ofcourse different ports were used)
 

astroshare

Young grasshopper
Joined
Dec 18, 2020
Messages
35
Reaction score
13
Location
usa
Is my driveway camera placement wrong? Seems like DS/AITOOL is not picking up persons while near or in the same frame as my car.

1st shot picked me up just fine
Screen Shot 2021-01-12 at 9.37.24 PM.png
Then I walked to my passenger door and it didn't pick me up
Screen Shot 2021-01-12 at 9.37.33 PM.png
Then it picked me up again as I was walking away
Screen Shot 2021-01-12 at 9.38.16 PM.png

Should I move the camera to the center of the garage?
Thanks.
 

Attachments

spammenotinoz

Pulling my weight
Joined
Apr 4, 2019
Messages
172
Reaction score
106
Location
Sydney
Is my driveway camera placement wrong? Seems like DS/AITOOL is not picking up persons while near or in the same frame as my car.

1st shot picked me up just fine
View attachment 79529
Then I walked to my passenger door and it didn't pick me up
View attachment 79528
Then it picked me up again as I was walking away
View attachment 79526

Should I move the camera to the center of the garage?
Thanks.
Camera placement is not bad, but this is a Good reference case, on why an areas should ideally be covered by 2 cameras with different views. Specifically a second cam on the left pointing to the right will get faces of people approaching from the right and detect a person.
Recognizing a person 3/4 hidden behind a car and with such low contrast will be a tough ask.
See if you can improve the contrast, but think you will struggle unless you can get the cam to see more torso.
Also highlights the importance of constantly recording, that way you just need to detect the person approaching or leaving and then review footage in between.
 

astroshare

Young grasshopper
Joined
Dec 18, 2020
Messages
35
Reaction score
13
Location
usa
Camera placement is not bad, but this is a Good reference case, on why an areas should ideally be covered by 2 cameras with different views. Specifically a second cam on the left pointing to the right will get faces of people approaching from the right and detect a person.
Recognizing a person 3/4 hidden behind a car and with such low contrast will be a tough ask.
See if you can improve the contrast, but think you will struggle unless you can get the cam to see more torso.
Also highlights the importance of constantly recording, that way you just need to detect the person approaching or leaving and then review footage in between.
Yeah, I have 24x7 recording of the substream. Might have to shell out some cash and buy another camera though, just have to convince the wifey.
 

spammenotinoz

Pulling my weight
Joined
Apr 4, 2019
Messages
172
Reaction score
106
Location
Sydney
Yeah, I have 24x7 recording of the substream. Might have to shell out some cash and buy another camera though, just have to convince the wifey.
This is obviously a personal install for you, unless you have an immediate need you can improve your system over time and find out what works best for you.
If you wait a year for the second camera, there will likely better models. That's the good thing about Blue Iris the cameras don't need to be the same, they can be completely different vendors.
Andy from EmpireTech can be found on these forums, I have purchased a few from him at good prices.

I was like you keeping 24x7 of the sub-stream, then I moved to keeping main stream 24x7 based on the following;
  • Recommendations from these forums
  • BI supporting dual streams, basically now runs on the smell of an oily rag
  • Cheap storage (found a decent deals on 6 TB drives) and they just seem to be getting cheaper
  • H.265 compression with CBR (although it can come with a performance and slight quality hit with most vendors)
(caveat where I use an older CPU that doesn't support H.265 hardware, I use H.264 with VBR). Similar storage usage to H.265 CBR. H.265 VBR always artifacts at night with motion for me.
  • Stopped chasing Megapixels, and maximum bit rates (still have some 4K's but went more for the 2K low light models
  • Adopted Deep-Quest AI to Flag key events
  • Disappointed with the quality of sub-stream, main stream is so much better. If an event happens and you only have sub-stream footage, you will be disappointed.
  • Set more realistic retention periods. I think when I started I was keeping all footage forever on the cloud. It wasn't a bandwidth issue it's just that for home, I have no real interest in footage older than a month, and just came to the conclusion it was very wasteful. For me the cams are a visual deterrent, a hobby and peace of mind to monitor pets ect.. when away. Like being on holiday's and checking in to view the chickens in the back yard, checking a parcel wasn't left on the doormat.
  • Reduced the quality of sub-streams, just so it's enough to detect motion. The SNAPS sent to DeepStack are from the MainStream (but have BI downsize them first), seems more efficient.

Most importantly, enjoy and continue to learn and share. There are many people here that know a heck of a lot more than me and I try and learn from them. I also experiment after firmware\software updates as things change.

I must say that while I was always happy with BlueIris motion detection and app (the key reason I switched to BlueIris), this thread about Free AI Person detection has been an absolute game changer.
Like I have telegram notifications enabled when I am away and the detection rate has been astoundingly good. We have had some suspicious activity and the amount of time reviewing flagged events v's triggered events has been an absolute game changer in-terms of quality of life and time saved.
 

maximosm

Young grasshopper
Joined
Jan 8, 2015
Messages
83
Reaction score
4
The latest compiled but not 'officially released' version looks to be v2.0.526 found on an open issue in VorlonCD's GitHub here: [Feature Request] Add Pushover Notifications · Issue #126 · VorlonCD/bi-aidetection
With this version getting an error..
tryied the versions 2.0.522.7681 and 2.0.526 when i open the new setting tab and setting up the url i get error :

Deepstack returned 'Invalid value for min_confidence' - http status code 'BadRequest' (400) in 38ms: Bad Request.

... AI URL for 'DeepStack' failed '6' times. Disabling: ''


My setup is with ip from a jetson nano.
 

Tinbum

Pulling my weight
Joined
Sep 5, 2017
Messages
417
Reaction score
110
Location
UK
With this version getting an error..
tryied the versions 2.0.522.7681 and 2.0.526 when i open the new setting tab and setting up the url i get error :

Deepstack returned 'Invalid value for min_confidence' - http status code 'BadRequest' (400) in 38ms: Bad Request.

... AI URL for 'DeepStack' failed '6' times. Disabling: ''


My setup is with ip from a jetson nano.
 

jz3082

Young grasshopper
Joined
Dec 13, 2019
Messages
47
Reaction score
7
Location
Oklahoma, US
  • Reduced the quality of sub-streams, just so it's enough to detect motion. The SNAPS sent to DeepStack are from the MainStream (but have BI downsize them first), seems more efficient.
Spammenotinoz,

I am interested in your configuration of BI to capture a jpeg from the main stream. My current configuration is using a cloned camera for motion detection. It is using the main and sub streams in there standard corresponding locations. The clone triggers on motion and generates a jpeg from the sub-stream. The clone master records 24X7 and is triggered by external URL from my home automation system.

The only way I have been able to get a jpeg from the mainstream is to setup a second camera using only the main stream. My CPU usage has increased using the mainstream on this camera for motion detection. One other question, what have you found is an acceptable image resolution that provides a good balance between DeepStack processing speed and object identification accuracy?
 

astroshare

Young grasshopper
Joined
Dec 18, 2020
Messages
35
Reaction score
13
Location
usa
This is obviously a personal install for you, unless you have an immediate need you can improve your system over time and find out what works best for you.
If you wait a year for the second camera, there will likely better models. That's the good thing about Blue Iris the cameras don't need to be the same, they can be completely different vendors.
Andy from EmpireTech can be found on these forums, I have purchased a few from him at good prices.

I was like you keeping 24x7 of the sub-stream, then I moved to keeping main stream 24x7 based on the following;
  • Recommendations from these forums
  • BI supporting dual streams, basically now runs on the smell of an oily rag
  • Cheap storage (found a decent deals on 6 TB drives) and they just seem to be getting cheaper
  • H.265 compression with CBR (although it can come with a performance and slight quality hit with most vendors)
(caveat where I use an older CPU that doesn't support H.265 hardware, I use H.264 with VBR). Similar storage usage to H.265 CBR. H.265 VBR always artifacts at night with motion for me.
  • Stopped chasing Megapixels, and maximum bit rates (still have some 4K's but went more for the 2K low light models
  • Adopted Deep-Quest AI to Flag key events
  • Disappointed with the quality of sub-stream, main stream is so much better. If an event happens and you only have sub-stream footage, you will be disappointed.
  • Set more realistic retention periods. I think when I started I was keeping all footage forever on the cloud. It wasn't a bandwidth issue it's just that for home, I have no real interest in footage older than a month, and just came to the conclusion it was very wasteful. For me the cams are a visual deterrent, a hobby and peace of mind to monitor pets ect.. when away. Like being on holiday's and checking in to view the chickens in the back yard, checking a parcel wasn't left on the doormat.
  • Reduced the quality of sub-streams, just so it's enough to detect motion. The SNAPS sent to DeepStack are from the MainStream (but have BI downsize them first), seems more efficient.

Most importantly, enjoy and continue to learn and share. There are many people here that know a heck of a lot more than me and I try and learn from them. I also experiment after firmware\software updates as things change.

I must say that while I was always happy with BlueIris motion detection and app (the key reason I switched to BlueIris), this thread about Free AI Person detection has been an absolute game changer.
Like I have telegram notifications enabled when I am away and the detection rate has been astoundingly good. We have had some suspicious activity and the amount of time reviewing flagged events v's triggered events has been an absolute game changer in-terms of quality of life and time saved.
Thank you for all the recommendations. I don't have any 4K cameras. After reading through this forum I went with 4x IP5M-T1179EW-28MM and 2xIPC-T5442TM-AS 2.8mm (driveway is one of them)
My current BI machine is a i5-10th gen with 16GB of ram, a 256GB NVME drive for Windows 10 OS and a 2TB Seagate SkyHawk for storage, which then offloads old recordings to my Unraid NAS (plenty of storage there).
I'm going to play with the Main stream 24x7 recording. My cameras are currently set as below with H264H since H265 was making me loose frames on the clips. Any suggestions for these settings?

cap2.PNG

Question, is there even a point to have substream active if 24x7 recording and AITOOL snapshots are taken from the MainStream?
Never mind, I see that BI uses the substream for motion detection
 
Last edited:
Joined
Jan 13, 2021
Messages
2
Reaction score
0
Location
Fl
I'm used to all this, and have been pushing through this bad for a while without finding an answer. For some reason every time there's a motion event, it takes a snapshot of the events, then AI interface tool says unable to open image because it is already being used by another program.
 
Top