warbux
n3wb
I am having trouble getting the AI Tool to start as a service. Anyone else experience the same problem?
Do I need to run Deepstack from windows to use your version? I can't seem to get yours working.Here is an update to my fork of @GentlePumpkin 's awesome tool.
Change log:
(Along with previous updates like Deepstack (for windows) start/stop support, auto start, read BI camera settings, a LOG tab, save all cameras and settings to single JSON file, etc)
- Dynamic Masking - thanks to @classObject! Any detection that are repeated in the same area will be ignored until they no longer appear xx times. Great for cars parked in driveway, etc.
- Camera option for 'Trigger Cancels' - Basically, rather than the URL triggering an event in BI, it will only be called when the detection is CANCELED. Note that you MUST change &flagalert=1 to &flagalert=0. As I understand this is how Sentry AI works - it just cancels a detection sent by BI. I haven't tested the 'Trigger cancels' camera checkbox yet since I dont have that configuration right now - let me know if it works.
- Images are put into a true queue to be processed, and the log/Overview tab shows you current/max/average queue levels so you know if BI is overloading AITool. (MaxImageQueueSize defaults to 100 and can be changed in the settings .JSON file if needed)
- Sort cameras on load
- Telegram chat id was not being saved correctly
- Fixed crashes related to stats tab, various null references, errors writing to history.csv, etc
- Safe loading and saving of settings file. If a corrupt settings file is detected it will revert to backup automatically.
- Remotely aims and fires paintball gun turret when AI detects neighbor cats or people with MAGA hats walking by.
Release Dynamic Masking · VorlonCD/bi-aidetection
Change log: Dynamic Masking - thanks to @classObject! Any detection that are repeated in the same area will be ignored Camera option for 'Trigger Cancels' - Basically, rather than the URL trigg...github.com
[11:37:47.328]: Constructor>
[11:37:47.340]: Constructor>
[11:37:47.342]: Constructor> Starting AITool Version 1.67.8.31787 built on 8/27/2020 5:39:35 PM
[11:37:47.342]: Constructor> *** Another instance is already running ***
[11:37:47.342]: Constructor> --- Files will not be monitored from within this session
[11:37:47.344]: Constructor> --- Log tab will not display output from service instance. You will need to directly open log file for that
[11:37:47.344]: Constructor> --- Changes made here to settings will require that you stop/start the service
[11:37:47.344]: Constructor> --- You must close/reopen app to see NEW history items/detections
[11:37:47.344]: Constructor> *** Running as administrator ***
[11:37:47.346]: Constructor> BlueIris path is 'C:\Program Files\Blue Iris 5', with 5 cameras and 5 clip folder paths configured.
[11:37:47.392]: CleanCSVList> Skipping clean of history.csv, instance already running.
[11:37:47.396]: Load> Loading settings from C:\Users\dave\Desktop\AITOOL-VORLONCD\AITool.Settings.json
[11:37:47.398]: RefreshInfo> Reading BlueIris settings from registry...
[11:37:47.412]: LoadFromCSVAsync> Loading history list from cameras/history.csv ...
[11:37:47.460]: UpdateWatchers> *** Another instance is already running, skip watching for changed files ***
[11:37:47.462]: Constructor> APP START complete.
[11:37:47.462]: RefreshInfo> DeepStack NOT installed
[11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running.
[11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running.
[11:37:47.464]: LoadFromCSVAsync> ...Loaded list in 50ms, 0 lines.
You do not need to use windows version of deepstack. Your problem is that another copy of aitool.exe is still running in memory. Maybe as service?Do I need to run Deepstack from windows to use your version? I can't seem to get yours working.
Code:[11:37:47.328]: Constructor> [11:37:47.340]: Constructor> [11:37:47.342]: Constructor> Starting AITool Version 1.67.8.31787 built on 8/27/2020 5:39:35 PM [11:37:47.342]: Constructor> *** Another instance is already running *** [11:37:47.342]: Constructor> --- Files will not be monitored from within this session [11:37:47.344]: Constructor> --- Log tab will not display output from service instance. You will need to directly open log file for that [11:37:47.344]: Constructor> --- Changes made here to settings will require that you stop/start the service [11:37:47.344]: Constructor> --- You must close/reopen app to see NEW history items/detections [11:37:47.344]: Constructor> *** Running as administrator *** [11:37:47.346]: Constructor> BlueIris path is 'C:\Program Files\Blue Iris 5', with 5 cameras and 5 clip folder paths configured. [11:37:47.392]: CleanCSVList> Skipping clean of history.csv, instance already running. [11:37:47.396]: Load> Loading settings from C:\Users\dave\Desktop\AITOOL-VORLONCD\AITool.Settings.json [11:37:47.398]: RefreshInfo> Reading BlueIris settings from registry... [11:37:47.412]: LoadFromCSVAsync> Loading history list from cameras/history.csv ... [11:37:47.460]: UpdateWatchers> *** Another instance is already running, skip watching for changed files *** [11:37:47.462]: Constructor> APP START complete. [11:37:47.462]: RefreshInfo> DeepStack NOT installed [11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running. [11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running. [11:37:47.464]: LoadFromCSVAsync> ...Loaded list in 50ms, 0 lines.
When it runs as a service it won't be visible, you have to look in task manager.Do I need to run Deepstack from windows to use your version? I can't seem to get yours working.
Code:[11:37:47.328]: Constructor> [11:37:47.340]: Constructor> [11:37:47.342]: Constructor> Starting AITool Version 1.67.8.31787 built on 8/27/2020 5:39:35 PM [11:37:47.342]: Constructor> *** Another instance is already running *** [11:37:47.342]: Constructor> --- Files will not be monitored from within this session [11:37:47.344]: Constructor> --- Log tab will not display output from service instance. You will need to directly open log file for that [11:37:47.344]: Constructor> --- Changes made here to settings will require that you stop/start the service [11:37:47.344]: Constructor> --- You must close/reopen app to see NEW history items/detections [11:37:47.344]: Constructor> *** Running as administrator *** [11:37:47.346]: Constructor> BlueIris path is 'C:\Program Files\Blue Iris 5', with 5 cameras and 5 clip folder paths configured. [11:37:47.392]: CleanCSVList> Skipping clean of history.csv, instance already running. [11:37:47.396]: Load> Loading settings from C:\Users\dave\Desktop\AITOOL-VORLONCD\AITool.Settings.json [11:37:47.398]: RefreshInfo> Reading BlueIris settings from registry... [11:37:47.412]: LoadFromCSVAsync> Loading history list from cameras/history.csv .. [11:37:47.460]: UpdateWatchers> *** Another instance is already running, skip watching for changed files *** [11:37:47.462]: Constructor> APP START complete. [11:37:47.462]: RefreshInfo> DeepStack NOT installed [11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running. [11:37:47.462]: GetDeepStackRun> DeepStack Desktop NOT running. [11:37:47.464]: LoadFromCSVAsync> ...Loaded list in 50ms, 0 lines.
A few thoughts.I'm using AI Tools VorlonCD , Need assistance with Telegram to send photo alerts. Started an acct with Telegram, made a group, got chatid and also token. Unable to sent alerts and have attempted to troubleshoot the errors in the logs. The images are sent to the folder C:/AI Tools/ error. The file resolution was lowered to 1280x720 and file size is approx 600KB . Any assistance is appreciated with this issue and anything identified in the logs. The upload is partial, can upload full if needed. Thanks.
[30.08.2020, 04:28:14.565]: DetectObjects> 127.0.0.1:83 - (Error: No predictions? JSON: '{"success":false,"error":"invalid image"}')
[30.08.2020, 04:28:14.583]: DetectObjects> 127.0.0.1:83 - ERROR: Failure response from DeepStack. JSON: '{"success":false,"error":"invalid image"}'
[30.08.2020, 04:28:14.683]: TelegramUpload> uploading image to chat "405397243"
[30.08.2020, 04:28:15.631]: TelegramText> ERROR: Could not send text "[30.08.2020, 04:28:14.583]: 127.0.0.1:83 - ERROR: Failure response from DeepStack. JSON: '{"success":false,"error":"invalid image"}'" to Telegram.
I'm using this version right now and it works great! I have deepstack running on my unraid server and BI running on my gaming desktop (will soon change this to my unraid server). The dynamic mask is a game changer, IMO. You can fine tune the settings quite a bit.Our new mod of AITOOL lets you specify as many DeepStack URL's as you like in settings. If you have more than one image in the queue, they will be processed in parallel in each deepstack server.
The log does get a little more complicated to view since results from each URL are mixed together, but it seems to work well from my initial testing. (@GentlePumpkin )
Releases · VorlonCD/bi-aidetection
Alarm system for Blue Iris based on Artificial Intelligence. - VorlonCD/bi-aidetectiongithub.com
Thanks, for taking the time to respond. Will implement the suggested troubleshooting methods. To answer your ?s, yes I can see the images. The files are sent to a folder C:\AI Tools\errors . The drive is SSD, with 56 GB free. Hardlink? All data is located on c: drive. I try to keep the images to a minimal by manually deleting files. (<150) while TS issue). Thanks again for taking the time!!A few thoughts.
- Both deepstack and telegram seem to think the image C:\AI_Input\MNHD.20200830_043459407.jpg is invalid. Or perhaps it cannot access it because it is still being written/accessed. Seems less likely since my code waits for full read-write access of the image before sending to deepstack.
- Try disabling the feature in BI that lowers the DPI, leave it along and see if that helps. Maybe BI isnt create a valid image or its holding the file open too long.
- Can you manually view images that fail?
- Plenty of drive space free?
- Anything special about the C:\AI_INPUT folder? Is it a hardlink/junction? Are there a bajillion images in that folder? Is it SSD or mechanical drive? (Each camera should have its own folder now, and disable the input path on main settings screen)
- At an admin command line run CHKDSK /f C: and press enter. Let it run on restart, then restart the machine. Maybe something logical wrong with the drive.
How do they get sent to the errors folder exactly? It could be a factor for this issue.The files are sent to a folder C:\AI Tools\errors .
Another suggestion@Chris Dodge love your fork, saved me alot of time trying to do it myself since I'm terrible in c... couple of ideas that could be good :
1. Option to include original alert image, or the image with the ai boxes (save some time when you get an alert and can see what it thinks is there)
2. For telegram a max message per time option. My s/o likes to talk with her mom in the driveway and send 20 telegram alerts in 30 seconds.
Thanks again for a great fork
+1 Perhaps it could be accomplished in the same way as BI does it?Another suggestion
as i'm running AITool in service, it'll be very good to have a webinterface
Be sure you put a '-' before your Chat ID #, also be sure your bot is invited to the group.
Be sure you put a '-' before your Chat ID #, also be sure your bot is invited to the group.
I ordered the bits last week to do it and will let you know once they arrive at the end of the week and I've tested it..I know a few of you are running deepstack on a raspberry pi, any feedback on reliability? My celeron NUC isn't cutting it. Docker on windows 10 it does a 720p res image in about 5 seconds. In the VM I originally had it took 20plus seconds. I see some feedback about the pi and NCS2 running in under a second, so looking for some feedback before I go down that route. It appears it's still in alpha