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

@105437 @juched @Senor Pibb - For the odd display issues, make a shortcut to AITOOLS somewhere, right-click > properties > compatibility tab > change high dpi settings, and see if they help for the next time you start it. Or maybe edit aitools.exe.config and set the value for DpiAwareness to "false" rather than "PerMonitorV2". I have a 4k monitor set at 175% dpi and a 1080p monitor set at 100% and UI elements seem to be fine for both.

Thank you. I have tried all the various options already under High DPI settings, and none of them work. If I open the window While the TV is on, it works, but if I close the app and relaunch once the the TV is off, then it will not draw properly. Yes, when I turn the TV off the resolution changes, even if my TeamViewer is open while the TV turns off. So, it seems the High DPI setting doesn't work when a monitor is not attached (or is off).

Have not had the opportunity to try DpiAwareness option yet.
 
@Chris Dodge I am having an issue where AI Tool isn't monitoring the input folder. I am running the latest version. I have it defined under the settings tab. Do I also need to set each input folder on each camera in AI Tool?
 
@Chris Dodge I am having an issue where AI Tool isn't monitoring the input folder. I am running the latest version. I have it defined under the settings tab. Do I also need to set each input folder on each camera in AI Tool?
You dont need a path per camera, but make sure any paths are either blank or valid paths. Turn on LOG EVERYTHING, hit SAVE on settings tab, hop right over to the log tab and let me know any recent log entries from "UpdateWatchers". It should give you an error if it cant enable a path for some reason. Also, over on the Camers tab, verify all the objects are still checked. Have seen a few cases they get unchecked.
 
  • Like
Reactions: pmcross
I'm also having the display issues with the latest version (181). For example in the history tab, whatever I do with the window size and dividers I can never see the whole history image. I'm connecting via remote VNC. I can temporarily change the resolution to 1080 (which upsets the local monitor), then if I resize the AITool window I can change back to my normal remote resolution and the windows and dividers can be adjusted to fit the whole image in. The latest changes to the history tab now I can see them correctly are great. So a temporary fix is to change to a high resolution, move the window edges and dividers then change the resolution back again. Hope this helps.
 
  • Like
Reactions: Chris Dodge
1. In the next release in a day or two, close the app, edit aitool.settings.json in notepad and search for "action_mqtt_retain_message" and set to true for each camera you need.
2. History tab has been overhauled for the next release too. It should fix missing items, and will actually show you skipped images due to cooldown or other failure.

I learned the hard way that if you a flagging an alert using MQTT and set the retain to true it will flag every following alert also. I had set the retain to True in the config file back before it had any effect, and with the new version I noticed that each time the AI detected a person all of the alerts were flagged with that detection until the next detection occurred, and then everything following was flagged with that detection, and so on. I'm sure there are some uses for the retain flag, but you probably don't want to use it if one of your MQTT topics is telling Blue Iris to flag alerts.
 
So I have been having quite a few issues lately with DeepStack running in an Ubuntu VM... At first it was running pretty smoothly, less than 1 second in the queue even with just one instance running. Well, I am now at over 9000ms even with two instances running! The VM has access to 24 cores on two Xeon X5650 CPUs, no AVX sadly. It is also eating RAM at about 13GBs right now. Reading that a few have managed under 1000ms times on a Pi4 and NCS2 I was thinking I might give that a shot.. until I just thought, any reason I can't just use something like the NCS2 on the PC? At that point, would there be any better options? The host is a Dell R710 so not many options for a GPU, unless it didn't need external power.
 
You dont need a path per camera, but make sure any paths are either blank or valid paths. Turn on LOG EVERYTHING, hit SAVE on settings tab, hop right over to the log tab and let me know any recent log entries from "UpdateWatchers". It should give you an error if it cant enable a path for some reason. Also, over on the Camers tab, verify all the objects are still checked. Have seen a few cases they get unchecked.
This is working now. I believe that the problem was that I had a AI Tool service pointing to the exe and also had to console window open. This used to work on GentlePumpkin's tool. I am really enjoying the ability to draw a mask for each camera directly from your tool as well as the dynamic masking. Thank you very much for your hard work and development of the this fork.
 
So I have been having quite a few issues lately with DeepStack running in an Ubuntu VM... At first it was running pretty smoothly, less than 1 second in the queue even with just one instance running. Well, I am now at over 9000ms even with two instances running! The VM has access to 24 cores on two Xeon X5650 CPUs, no AVX sadly. It is also eating RAM at about 13GBs right now. Reading that a few have managed under 1000ms times on a Pi4 and NCS2 I was thinking I might give that a shot.. until I just thought, any reason I can't just use something like the NCS2 on the PC? At that point, would there be any better options? The host is a Dell R710 so not many options for a GPU, unless it didn't need external power.
I am running a Raspberry Pi 4b with an NCS 2 and it is working very well for me. I also was interested in running the NCS on a PC, but the problem is that Deepstack for the NCS is only supported on a Raspberry Pi.
 
  • Like
Reactions: MnM
I am running a Raspberry Pi 4b with an NCS 2 and it is working very well for me. I also was interested in running the NCS on a PC, but the problem is that Deepstack for the NCS is only supported on a Raspberry Pi.
I have 5 pi and I cant get any of them to show the box round the object in the correct place. I cant understand why. Each has a brand new sd card with a new individual intall. Ive tried full, lite and the desktop lite versions and the 64bit. None show the madk in the correct place. Any ideas?
 
I have 5 pi and I cant get any of them to show the box round the object in the correct place. I cant understand why. Each has a brand new sd card with a new individual intall. Ive tried full, lite and the desktop lite versions and the 64bit. None show the madk in the correct place. Any ideas?
I'm honestly not sure. My boxes are around objects properly. I used this to get Deepstack installed on my pi:

The only difference was that I used this command to install
sh install-deepstack.sh
 
Thats what I've done numerous times from scratch. It happens with all versions of AITool.

@Tinbum @pmcross - Interesting! The same version of deepstack, one works fine. Sooo... How do you both install the OS? Are there not different versions available outside lite/full/desktop? Did you both update the OS to the latest version after install? How are you connecting to the device to manage it? Is there an actual monitor attached, is it on, what kind of remote tool are you using, etc - The deepstack code could be using some dpi/resolution setting set on the device based on what is connected or not. That would be bad, but still could happen. Unrelated, Is anyone else a little pissed that ipcamtalk is limiting me to ONE SPACE after a period? Dont tell me how to live my life, ipcamtalk. :)
 
  • Like
Reactions: balucanb
@Tinbum @pmcross - Interesting! The same version of deepstack, one works fine. Sooo... How do you both install the OS? Are there not different versions available outside lite/full/desktop? Did you both update the OS to the latest version after install? How are you connecting to the device to manage it? Is there an actual monitor attached, is it on, what kind of remote tool are you using, etc - The deepstack code could be using some dpi/resolution setting set on the device based on what is connected or not. That would be bad, but still could happen. Unrelated, Is anyone else a little pissed that ipcamtalk is limiting me to ONE SPACE after a period? Dont tell me how to live my life, ipcamtalk. :)
This is a great point @Chris Dodge I used the Raspberry Pi Imager and went with the full version. I then updated the OS and installed Deepstack. I connect via VNC Viewer and don't have a monitor connected to the Pi.

Edit: it may be important to note that I use RDP to connect to my BI machine to view/configure AI Tool.
 
I think I have tried everything I can think of. I've installed without desktop, with desktop, with different size tv's connected on the hdmi port. Without the HDMI using VNC, and also with Putty. I've tried altering the config file to different resolutions and through sudo raspi-config. I also used RPI imager with versions off the RPI website (and the 64bit version that deepstack won't respond though it will show the webserver page). I can do more than one space after a period, no i cant it disappears after posting!!

Oh and a pi 3b+, and a 4 with 2gb,4gb and 8gb.
 
I think I have tried everything I can think of. I've installed without desktop, with desktop, with different size tv's connected on the hdmi port. Without the HDMI using VNC, and also with Putty. I've tried altering the config file to different resolutions and through sudo raspi-config. I also used RPI imager with versions off the RPI website (and the 64bit version that deepstack won't respond though it will show the webserver page). I can do more than one space after a period, no i cant it disappears after posting!!

Oh and a pi 3b+, and a 4 with 2gb,4gb and 8gb.
Stupid question, but where are you running AI Tool and how do you connect to that machine?
 
Run AITool on 2 different desktops, one just for testing purposes. I'm sat at one of them and use teamviewer for the other most of the time, but also access it direct at times.. Both computers do it. Its also the same with all versions of AITool, including the original GentlePumpkin.
 
@Tinbum - Another thought - what if the connection to your PI is a bit unstable and the upload of the image file gets somehow truncated so the resolution of the image isnt correct, causing rectangle scaling issues? I'm not even sure that is possible with JPEG files, I kind of assume a truncated file would be flagged as bad image. WiFi vs hardwired? PI plugged into the same switch/router as the computer running AITOOL?

And most importantly, is there a bug logged for DeepStack? Anyone else reported this?
 
The pi's are hardwired to the same switch as the computer. Tried wifi as well. I havent managed to find reference to a bug but have emailed deepstack twice but had no reply. Its due to rain here tomorrow so a day in trying new instals i think.