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

One issue i am having is when my car is parked in the driveway the alert goes off over and over. Thoughts?
Enable dynamic masks. The alert will go off twice, create a mask for that object and then stop alerting. If you want you can find that mask under history / dynamic masks, and right click it to create a static mask for that car.
 
I'm having trouble running two instances of deep stack in ai-tool

deep stack gpu 2021.01

ai tool 2.0.627.7696

when I go in the deepstack tab and add another port: 82,83

click 'start'
it seem to be fine, it shows two command line and URL and 'running'

but then after the first event is analyzed I get an error

stderr.txt:


Process Process-1:
Traceback (most recent call last):
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\process.py", line 297, in _bootstrap
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\process.py", line 99, in run
File "C:\DeepStack\intelligencelayer\shared\detection.py", line 138, in objectdetection
os.remove(img_path)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Admin\\AppData\\Local\\Temp\\DeepStack\\83e674a1-5439-4a0c-814c-3449f9b86bae'
 
If you do not select clone camera, then it will be pulling the stream from the camera for each "clone" and thus contribute to CPU overhead (unless your machine is new enough or not enough cameras to make a difference). Notice how my clone cameras do not show a bitrate. Pull up Blue Iris status and the camera tab and yours will show bitrates for all the cameras, including the clones. Or maybe yours doesn't, but it will at some point with an update or a reboot and pull the stream twice...

View attachment 83099
@seth-feinberg

Here is a Tasker challenge for you to contemplate. Make a task to change your profile when you leave the house and change it back on your return ;)

You do actually need one of the cameras with the same IP address to be marked 'Clone' to save resources.

"There are four parts of setting up a clone camera for backup" This does not appear to be a standard Clone configuration!

So when you say "select clone" are you referring to the "Clone Master" toggle box on the General tab? or is this something on the next tab? Seems like the location changed over the versions pertinant to this tread, but I seem to only be able to locate the one on the General tab.
 
I'm having trouble running two instances of deep stack in ai-tool

deep stack gpu 2021.01

ai tool 2.0.627.7696

when I go in the deepstack tab and add another port: 82,83

click 'start'
it seem to be fine, it shows two command line and URL and 'running'

but then after the first event is analyzed I get an error

stderr.txt:


Process Process-1:
Traceback (most recent call last):
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\process.py", line 297, in _bootstrap
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\process.py", line 99, in run
File "C:\DeepStack\intelligencelayer\shared\detection.py", line 138, in objectdetection
os.remove(img_path)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Admin\\AppData\\Local\\Temp\\DeepStack\\83e674a1-5439-4a0c-814c-3449f9b86bae'

I saw you had this posted on Github as well. I am not using AiTool to start Deepstack. I am running 5 instances in Docker. In AiTool, on the settings tab under AI Servers I configure each instance. The only difference is they all have a different port number. You could start each instance from PowerShell and then configure them under Ai Servers as a workaround until this is fixed in AiTool.

I have WSL2 setup on my Windows 10 Pro box because Windows manages CPU and memory resources for Docker with WSL2. Less wasted resources in my opinion. I do not have a GPU but there is a GPU version of DeepStack for Docker if you decide to go that route.

1614135982388.png
 
I just upgraded to the vorlonCD version released on 10/30/2020. I was using gp's 1.65 version so I had cloned cameras. I've removed the clones and got things working with single cams but I'm seeing alerts in BI for irrelevant hits. I spent yesterday reading every post since the vorlonCD release on 10/30/2020 and believe I have it all setup correctly. I'll post my setting below. Let me know if you need any other settings.

Also, do I need the 2 trigger lines? Can't the flagalert and memo tags be combined in to one trigger line? I don't understand the reason for 2 triggers because I see both in BI for valid triggers. The flagged alert is also before the unflaged alert in BI's alert list.

I am running BI v5.3.9.9.

bi-porch-alerts.JPGbi-porch-record.JPGbi-porch-trigger.JPGporchcamsettings.JPGporchcam.JPGbi-alertlist.JPG
 
I just upgraded to the vorlonCD version released on 10/30/2020. I was using gp's 1.65 version so I had cloned cameras. I've removed the clones and got things working with single cams but I'm seeing alerts in BI for irrelevant hits. I spent yesterday reading every post since the vorlonCD release on 10/30/2020 and believe I have it all setup correctly. I'll post my setting below. Let me know if you need any other settings.

Also, do I need the 2 trigger lines? Can't the flagalert and memo tags be combined in to one trigger line? I don't understand the reason for 2 triggers because I see both in BI for valid triggers. The flagged alert is also before the unflaged alert in BI's alert list.

I am running BI v5.3.9.9.

View attachment 83381View attachment 83382View attachment 83383View attachment 83384View attachment 83385View attachment 83386
You don't need two trigger URLs. Remove the first one. The flagalert and memo tags can be comined into one. Also I think your "(cancelled)" in the Cancel URL might be wrong. I just have "&memo=[summary]"
 
You don't need two trigger URLs. Remove the first one. The flagalert and memo tags can be comined into one. Also I think your "(cancelled)" in the Cancel URL might be wrong. I just have "&memo=[summary]"

Thanks. I'll give that a try. The (Cancelled) for the memo was something I saw in another post. I'll change it to [Summary] and see what happens.

In the log file I saw this when the cancel url was called.
Date Func Detail Level Source AIServer Camera Image Idx Depth Color ThreadID FromFile Filename
2/24/2021 12:19:16 PM CallTriggerURLs -> cancel URL called: , response: 'signal=green profile=3 lock=0 transport=0,0/1 clip=151311539 camera=Front Porch ' Debug AITOOLS.EXE 192.168.10.55:5000 Front Porch None 9801 6 70 False AITool.[2021-02-23].log

But I never seen the word cancelled in blueiris, nor do I have any cancelled alerts. So maybe you are correct about the cancel url.
 
Thanks. I'll give that a try. The (Cancelled) for the memo was something I saw in another post. I'll change it to [Summary] and see what happens.

In the log file I saw this when the cancel url was called.
Date Func Detail Level Source AIServer Camera Image Idx Depth Color ThreadID FromFile Filename
2/24/2021 12:19:16 PM CallTriggerURLs -> cancel URL called: , response: 'signal=green profile=3 lock=0 transport=0,0/1 clip=151311539 camera=Front Porch ' Debug AITOOLS.EXE 192.168.10.55:5000 Front Porch None 9801 6 70 False AITool.[2021-02-23].log

But I never seen the word cancelled in blueiris, nor do I have any cancelled alerts. So maybe you are correct about the cancel url.

Still getting irrelevant triggers in BI's alert list. I removed the additional trigger line but also still have 2 external triggers in the BI alert list. Do I need to restart aitools?
 
In case anyone wants the latest compile of the VorlonCD tool. I compiled it from the latest code on the github. I take no credit for any of this. Just happened to figure out how to do it lol.

EDIT: Backup your current AITool folder before overwriting any files.

Version in pic.
Screen Shot 2021-02-24 at 6.47.32 PM.png
 

Attachments

In case anyone wants the latest compile of the VorlonCD tool. I compiled it from the latest code on the github. I take no credit for any of this. Just happened to figure out how to do it lol.

EDIT: Backup your current AITool folder before overwriting any files.

Version in pic.
View attachment 83394
Any chance you could post a .zip file?
 
Probably a very simple question (hopefully) - how do I put my ddns address into the trigger url?
If I put in my current public IP it triggers BI the way it's supposed to but I can't figure out what I'm meant to do with ddns so I don't have to keep updating the trigger url's in AI Tool and the web server WAN address in BI.
Any help appreciated.
 
Just finished configuring my BI server with the AITool integration and seems to be working! I am seeing an issue in the log and wanted to know if it is any concern. The message states "WARNING: No default camera found. Aborting"

Editing this to add some more information. I have DeepQuestAI installed on a Linux VM and BI is running on a Windows VM. I am getting clips from the HD camera feeds and can see that AITool is detecting and triggering properly. It seems this warning message appears after every trigger.

Screen Shot 2021-02-26 at 9.58.22 AM.png
 
Last edited:
Probably a very simple question (hopefully) - how do I put my ddns address into the trigger url?
If I put in my current public IP it triggers BI the way it's supposed to but I can't figure out what I'm meant to do with ddns so I don't have to keep updating the trigger url's in AI Tool and the web server WAN address in BI.
Any help appreciated.
Can you clarify your configuration? Are aitool and BI installed on different computer's ? Assuming aitool and BI are on the same network I do not see a need to use ddns.

If for some reason you are forced to use ddns this might work for you
Add the necessary commands for your trigger command. I use this to remotely change profiles so it should work.

Remember to setup port forwarding!
 
Last edited:
Just finished configuring my BI server with the AITool integration and seems to be working! I am seeing an issue in the log and wanted to know if it is any concern. The message states "WARNING: No default camera found. Aborting"
Is your system fully functional if you ignore the message?