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

Would some be able to point me in the right direction. not sure if its an iris issue or AI issue, but my set up is as follows, i have a sub stream that runs 24/7 recording and when it detects motion it will trigger the image grab forAI. In AI i have it set so that when its a person that it will trigger my HD feed on the same cam, which i have set to trigger to record 6 seconds before the trigger and also grab images for AI, and these are the Images that get sent to Telegram for me to be notified instead of low quality ones for the sub.


So the issue is this, AI is picking up all the images for sub no problem i have it grabing an image on BI every .5 seconds ( this is a foyer walkway which is why i want it to grab anything coming into my complex) however the HD images are not consistent both on BI and AI. where AI will skip them randomly or BI will get images of frozen frame from prebuffer, but then not come back on to grab the actual image to for AI to process.

any suggestions on settings or a fix for me.
 
Would some be able to point me in the right direction. not sure if its an iris issue or AI issue, but my set up is as follows, i have a sub stream that runs 24/7 recording and when it detects motion it will trigger the image grab forAI. In AI i have it set so that when its a person that it will trigger my HD feed on the same cam, which i have set to trigger to record 6 seconds before the trigger and also grab images for AI, and these are the Images that get sent to Telegram for me to be notified instead of low quality ones for the sub.


So the issue is this, AI is picking up all the images for sub no problem i have it grabing an image on BI every .5 seconds ( this is a foyer walkway which is why i want it to grab anything coming into my complex) however the HD images are not consistent both on BI and AI. where AI will skip them randomly or BI will get images of frozen frame from prebuffer, but then not come back on to grab the actual image to for AI to process.

any suggestions on settings or a fix for me.
Depending on your hardware setup. You may simply be running out of buffer space. It is possible that each AI analysis is taking more than 0.5 seconds to complete, things then eventually become unreliable as the queue over runs.
Try grabbing the image every 1.5 seconds. If that works and you have a powerful processor you could try installing additional deepstack instances to cope with your 0.5 second requirement.
 
Last edited:
I have had blue iris setup for 6 months now with BI running on win10 machine with gentle pumpkins aitool. Deepstack is running in docker on same machine. I use one camera method main and sub stream setup. Up until a few days ago everything was working great. Motion detected->picture taken and sent to Deepstack->Deepstack processes and Aitool receives the alert->Aitool triggers BlueIris to record motion and flag clip-> home assistant receives MQTT of motion and binary sensor is tripped to show motion. Things have been great. Now its broken and not working. It does not appear Aitool is sending or BI is not receiving the trigger url. Home assistant also does not receive the MQTT for motion sensor. I do not know what could be wrong. I checked all settings and they are as they were and correct. If I copy the trigger url from Aitool and paste in a browser, it triggers the camera in BI and sensor in home assistant. Any help would be appreciated. I started a new Topic here. AiTool not sending or BI not receiving trigger!!
 
@bsmith
Have you looked at the error log? Not sure how well the old version logged issues but the latest version is pretty good. May be it's time to consider updating to the vorlonCD version. You would then be able to check the error log.

I'm sure you have done all the usual stuff like re booting etc ? I recall having a similar issue a good while back that happened after a Win 10 OS update. As I recall I resolved it by triggering BI with the IP address of the actual machine i.e 192.168.1.6:81.
I have kept the direct addressing approach since that time and not had an issue with triggering BI since.
 
this is the only log I see Screen Shot 2021-02-28 at 10.40.15 AM.png

It shows object detected and trigger urls. I don't see it show up in BI or Home Assistant.
 
The log looks good to me. Have you tried copying the url's and pasting them directly into your web browser? I know you mentioned earlier that you successfully sent url's manually but at least this way confirms they are identical. Which version of aitool are you running with?
 
Yes I copied from the triggers box and pasted in a browser it works correctly. I am running v1.67 of gentlepumpkin
 
FYI!!! Fixed it. When I copied and pasted the url in the browser of computer I was using to remote desktop in BI machine the url would work. But if pasted in browser of the BI machine I would get Authorization Required. I found I had to add the BI machine to Limit access to IP addresses (not real sure why I had to add IP it is the host computer with same network card). Unsure why all the sudden I needed to add it to list when it has been working for months. I wanted to posted this if anyone is having similar problems
 
  • Like
Reactions: sunnyhaibin
If I'd like to use more than one URL trigger for a camera, how should I enter the second one? Thanks
 
use a comma (, )between url triggers
 
  • Like
Reactions: 105437
I just experienced something interesting with AI Tool 2.0.703.7716.

I received a telegram alert and the red box around the person who caused the positive hit is entirely within a masked area. 100%, no corner of the box is in an unmasked area and nothing else was detected, only 1 thing in the image. I wonder why I got this alert for something in a masked area. This has never happened before and hasn't happened since.

I found the following error in AITool at the same time the alert in question was sent

" Result='Relevant', Detail='Person (82%)', ObjType='Person', DynMaskResult='NotEnabled', DynMaskType='Unknown', ImgMaskResult='NoMaskImageFile', ImgMaskType='None"
 
Last edited:
I've been pretty good about figuring this all out but a power outage knocked me out last night (I really need to get battery backup). When aitools starts I am getting the following error.

Parameter is not valid. [ArgumentException] Mod: folv_history_SelectionChanged(Object sender, EventArgs e) Line:3693:32

I am running the 1/11/21 Ver. 2.0.527.7681

Anyone able to help me get back up and running?

Thanks in advance!
 
I seem to be having an issue where AITool is not disabling Pushover service when I uncheck it and click save as I keep getting notifications on my devices. I have looked at the settings.json file and double checked the GUI and they show disabled.

AITool-VorlonCD-v2.0.759
 
Last edited:
Anyone else seeing this error occasionally in your log?

2021-03-02 12:19:20.412628|Error|AITOOLS.EXE|SendPushoverMessageAsync|Amazon_Objects:us-east-2|Driveway_AI|| Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)|11148|9||26
2021-03-02 12:19:20.413628|Error|AITOOLS.EXE|PushoverUpload|Amazon_Objects:us-east-2|Driveway_AI|| Pushover response code=0 in 1ms, Errs='Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)' |11149|8||26
2021-03-02 12:19:20.414627|Error|AITOOLS.EXE|Trigger|Amazon_Objects:us-east-2|Driveway_AI|Driveway_Cam.20210302_121917679.jpg| -> ERROR sending message or image to Pushover|11150|7||26
 
Been watching this thread for a good while now. Thanks for all of the great help that's been provided. On to my problem...

I started with 1.65 and last week switched to 2.0.6x (upgraded to 2.0.759 today). Got it all up and running but I have a weird issue that didn't seem to pop up until after the upgrade, although I don't see how AITool is the culprit. I'm using Blue Iris and have it save photos for AITool to examine in an AIInput folder (as is common I believe). I have BI set to purge files in that folder older than 7 days. Despite that, the images are deleted every 3 to 4 minutes or so. AITool still works, but I have no visual history for AITool. I've attached a screenshot of the settings for that folder in BI. Anyone have any suggestions on something I'm missing or seen something similar? Thank you.
BI_AIInput_Settings.png
 
Been watching this thread for a good while now. Thanks for all of the great help that's been provided. On to my problem...

I started with 1.65 and last week switched to 2.0.6x (upgraded to 2.0.759 today). Got it all up and running but I have a weird issue that didn't seem to pop up until after the upgrade, although I don't see how AITool is the culprit. I'm using Blue Iris and have it save photos for AITool to examine in an AIInput folder (as is common I believe). I have BI set to purge files in that folder older than 7 days. Despite that, the images are deleted every 3 to 4 minutes or so. AITool still works, but I have no visual history for AITool. I've attached a screenshot of the settings for that folder in BI. Anyone have any suggestions on something I'm missing or seen something similar? Thank you.
View attachment 83791

It may be that the folder is filled with test images or other images that BI does not know is there. I do not believe it deletes the images if you submit them again with AiTool.

I found a v2.0.845 in a zip on GitHub in the VorlonCD project. v2.0.845
 
  • Like
Reactions: CAL7