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

@105437 - The python error doesnt mean anything, it always happens. I just forgot to exclude those STDERR lines when you dont have deepstack debug enabled.

The other 403 forbidden error might mean you have the wrong IP address or port configured for the deepstack server. What are the log entries in "DetectObjects" just before the forbidden error?
 
@105437 - The python error doesnt mean anything, it always happens. I just forgot to exclude those STDERR lines when you dont have deepstack debug enabled.

The other 403 forbidden error might mean you have the wrong IP address or port configured for the deepstack server. What are the log entries in "DetectObjects" just before the forbidden error?
I think the IP and port are correct. I quit AI Tool and started back up and tiggered a few cameras. Here's what was reported in the log.

2020-11-03 14:02:43.502780|Info|AITOOLS.EXE|InitializeBackend|None|None|None|Starting AITool Version 2.0.37.7608 built on 10/30/2020 10:48:57 AM|7|0||7
2020-11-03 14:02:43.797598|Info|AITOOLS.EXE|Shell_Load|None|None|None| APP START complete. Initialized in 1.2 seconds (1182ms)|77|1|yellow|1
2020-11-03 14:02:52.453750|Info|AITOOLS.EXE|StopAsync|None|None|None| Stopping Deepstack...|81|1||1
2020-11-03 14:03:07.350195|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg| Got http status code 'Forbidden' (403) in 32ms: Forbidden|95|1||15
2020-11-03 14:03:07.353191|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg| Empty string returned from HTTP post.|96|1||15
2020-11-03 14:03:07.355190|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|None|...Problem with AI URL: '' (URL ErrCount=2, max allowed of 5)|102|0||15
2020-11-03 14:03:07.355190|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg| ...Putting image back in queue due to URL '' problem (QueueTime=0.0, Image ErrCount=0, Image RetryCount=1, URL ErrCount=2): 'S:\BI_AI\Entry_Cam.20201103_140306753.jpg', ImageProcessQueue.Count=0|103|1||15
2020-11-03 14:03:07.615219|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Entry_AI|None|---- Waiting 30 seconds before retrying bad URL. (ErrCount=2 of 5, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:03:07.615219|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Entry_AI|None|---- All URL's are in use or disabled, waiting...|105|0||14
2020-11-03 14:03:37.170556|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Driveway_AI|None|---- Trying previously failed URL again after 30 seconds. (ErrCount=2, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:03:37.212528|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg| Got http status code 'Forbidden' (403) in 8ms: Forbidden|143|1||13
2020-11-03 14:03:37.214526|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg| Empty string returned from HTTP post.|144|1||13
2020-11-03 14:03:37.215527|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|None|...Problem with AI URL: '' (URL ErrCount=4, max allowed of 5)|150|0||13
2020-11-03 14:03:37.215527|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140306753.jpg|...Putting image back in queue due to URL '' problem (QueueTime=0.5, Image ErrCount=0, Image RetryCount=2, URL ErrCount=4): 'S:\BI_AI\Entry_Cam.20201103_140306753.jpg', ImageProcessQueue.Count=16|151|0||13
2020-11-03 14:03:37.432391|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Entry_AI|None|---- Waiting 30 seconds before retrying bad URL. (ErrCount=4 of 5, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:03:37.432391|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Entry_AI|None|---- All URL's are in use or disabled, waiting...|153|0||13
2020-11-03 14:04:07.006502|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- Trying previously failed URL again after 30 seconds. (ErrCount=4, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:04:07.040476|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140308753.jpg| Got http status code 'Forbidden' (403) in 5ms: Forbidden|163|1||20
2020-11-03 14:04:07.041475|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140308753.jpg| Empty string returned from HTTP post.|164|1||20
2020-11-03 14:04:07.042475|Error|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|None|... AI URL for 'DeepStack' failed '6' times. Disabling: '2020-11-03 14:04:07.043474|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Entry_AI|Entry_Cam.20201103_140308753.jpg| ...Putting image back in queue due to URL '' problem (QueueTime=1.0, Image ErrCount=0, Image RetryCount=1, URL ErrCount=6): 'S:\BI_AI\Entry_Cam.20201103_140308753.jpg', ImageProcessQueue.Count=18|171|1||20
2020-11-03 14:04:07.272525|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Entry_AI|None|---- All URL's are in use or disabled, waiting...|172|0||20
 
@Chris Dodge... I just put AI Tool in Debug mode and tried again from a restart.

2020-11-03 14:14:34.066750|Info|AITOOLS.EXE|InitializeBackend|None|None|None|Starting AITool Version 2.0.37.7608 built on 10/30/2020 10:48:57 AM|7|0||7
2020-11-03 14:14:34.070748|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Installed NET Framework version '4.8.0', Target version '.NETFramework,Version=v4.7.2'|8|0||7
2020-11-03 14:14:34.071747|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Windows 'Windows10', version '10.0.18363' Release ID '1909', 64Bit=True, Workstation=True, Server=False, SERVICE=False|9|0||7
2020-11-03 14:14:34.071747|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Not running as administrator.|10|0||7
2020-11-03 14:14:34.071747|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| * Start in/current directory is the same as where the EXE is running from: C:\Users\bcari\Desktop\AI *|11|0||7
2020-11-03 14:14:34.073745|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| Reading BlueIris settings from registry...|12|1||7
2020-11-03 14:14:34.073745|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris clip path found: S:\BI_New|13|1||7
2020-11-03 14:14:34.073745|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris clip path found: S:\BI_Stored|14|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris clip path found: S:\BI_Alerts|15|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris clip path found: S:\BI_AI|16|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Back_Porch_Cam|17|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Back_Porch_Clone|18|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Back_Porch_AI|19|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Doorbell_Cam|20|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Doorbell_Clone|21|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Doorbell_AI|22|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Driveway_Cam|23|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Driveway_Clone|24|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Driveway_AI|25|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Entry_Cam|26|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Entry_Clone|27|1||7
2020-11-03 14:14:34.074744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Entry_AI|28|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_Cam|29|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_Clone|30|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_Porch_Cam|31|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_Porch_Clon|32|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_AI|33|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Front_Porch_AI|34|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Garage_Cam|35|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Garage_Clone|36|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Garage_AI|37|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Kennel_Cam|38|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Left_Rear_Cam|39|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Left_Rear_Clone|40|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Left_Rear_AI|41|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Mailbox|42|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Right_Rear_Cam|43|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Right_Rear_Clone|44|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Right_Rear_AI|45|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Side_Camera|46|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Side_Clone|47|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Side_Porch_Cam|48|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Side_AI|49|1||7
2020-11-03 14:14:34.075744|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris camera found: Side_Porch_AI|50|1||7
2020-11-03 14:14:34.076742|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris app path found: C:\Program Files\Blue Iris 5|51|1||7
2020-11-03 14:14:34.076742|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| BlueIris url found: https://192.168.1.16:8347|52|1||7
2020-11-03 14:14:34.076742|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| BlueIris path is 'C:\Program Files\Blue Iris 5', with 34 cameras and 4 clip folder paths configured.|53|0||7
2020-11-03 14:14:34.077742|Debug|AITOOLS.EXE|RefreshInfo|None|None|None| Deepstack Desktop install path found in Uninstall registry: C:\DeepStack|54|1||7
2020-11-03 14:14:34.102726|Debug|AITOOLS.EXE|GetDeepStackRun|None|None|None| DeepStack Desktop IS running from C:\DeepStack\server\server.exe|55|2||7
2020-11-03 14:14:34.258633|Debug|AITOOLS.EXE|CreateConnection|None|None|None| Created connection to SQLite db v3033000 in 148ms, Flags='SharedCache;Create;ReadWrite': C:\Users\bcari\Desktop\AI\_Settings\AITool.Database.SQLITE3|56|3||6
2020-11-03 14:14:34.277619|Debug|AITOOLS.EXE|UpdateHistoryList|None|None|None| Update History Database: Added=610, removed=0, total=610, StackDepth=9, TID=6, TCNT=16 in 168ms|57|3||6
2020-11-03 14:14:34.278618|Debug|AITOOLS.EXE|CleanHistoryList|None|None|None| Removing missing files from in-memory database...|58|1||5
2020-11-03 14:14:34.278618|Debug|AITOOLS.EXE|EventMessage|None|None|None| Database initialized.|59|2||1
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Back_Porch_AI': 'S:\BI_AI'|60|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Doorbell_AI': 'S:\BI_AI'|61|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Driveway_AI': 'S:\BI_AI'|62|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Entry_AI': 'S:\BI_AI'|63|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Front_AI': 'S:\BI_AI'|64|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Front_Porch_AI': 'S:\BI_AI'|65|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Garage_AI': 'S:\BI_AI'|66|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Left_Rear_AI': 'S:\BI_AI'|67|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Right_Rear_AI': 'S:\BI_AI'|68|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Side_AI': 'S:\BI_AI'|69|4||6
2020-11-03 14:14:34.284614|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Skipping duplicate path for 'Side_Porch_AI': 'S:\BI_AI'|70|4||6
2020-11-03 14:14:34.285613|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Watcher 'INPUT_PATH' is now watching 'S:\BI_AI'|71|4||6
2020-11-03 14:14:34.285613|Debug|AITOOLS.EXE|UpdateWatchers|None|None|None| Enabled 1 FileSystemWatchers.|72|4||6
2020-11-03 14:14:34.285613|Debug|AITOOLS.EXE|Shell_Load|None|None|None| Back end initialization completed in 792ms.|73|2||6
2020-11-03 14:14:34.313596|Debug|AITOOLS.EXE|CleanHistoryList|None|None|None| No missing files to clean from database?|74|2||5
2020-11-03 14:14:34.313596|Debug|AITOOLS.EXE|CleanHistoryList|None|None|None| ...Cleaned 0 items in 39ms|75|2||5
2020-11-03 14:14:34.358569|Debug|AITOOLS.EXE|GetDeepStackRun|None|None|None| DeepStack Desktop IS running from C:\DeepStack\server\server.exe|76|2||1
2020-11-03 14:14:34.366563|Info|AITOOLS.EXE|Shell_Load|None|None|None| APP START complete. Initialized in 1.2 seconds (1192ms)|77|1|yellow|1
2020-11-03 14:14:35.060134|Debug|AITOOLS.EXE|HistoryStartStop|None|None|None| History update timer started.|79|0||1
2020-11-03 14:15:01.643743|Debug|AITOOLS.EXE|OnCreated|None|None|None| |80|1||8
2020-11-03 14:15:01.643743|Debug|AITOOLS.EXE|OnCreated|None|Front_AI|Front_Cam.20201103_141501392.jpg| ====================== Adding new image to queue (Count=1): S:\BI_AI\Front_Cam.20201103_141501392.jpg|81|1||8
2020-11-03 14:15:01.915576|Debug|AITOOLS.EXE|WaitForNextURL|None|Front_AI|None| Updating/Resetting AI URL list...|82|0||6
2020-11-03 14:15:01.934563|Debug|AITOOLS.EXE|WaitForNextURL|None|Front_AI|None| ---- #1: Added new URL: 2020-11-03 14:15:01.935563|Debug|AITOOLS.EXE|WaitForNextURL|None|Front_AI|None| ...Found 1 AI URL's in settings.|84|0||6
2020-11-03 14:15:01.935563|Debug|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Adding task for file 'Front_Cam.20201103_141501392.jpg' (Image QueueTime='0.0' mins, URL Queue wait='25ms', URLOrder=1 of 1, URLOriginalOrder=1) on URL '2020-11-03 14:15:01.935563|Debug|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|None| Done adding 1 total threads, ErrCnt=0, ImageProcessQueue.Count=0|86|0||6
2020-11-03 14:15:01.966548|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Starting analysis of S:\BI_AI\Front_Cam.20201103_141501392.jpg...|87|2||5
2020-11-03 14:15:02.019513|Debug|AITOOLS.EXE|IsValidImage|192.168.1.18:32773|Front_AI|None| Image file is valid: Front_Cam.20201103_141501392.jpg|88|2||5
2020-11-03 14:15:02.021509|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| (1/6) Uploading a 2669330 byte image to DeepQuestAI Server at 2020-11-03 14:15:02.067482|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Got http status code 'Forbidden' (403) in 45ms: Forbidden|90|1||6
2020-11-03 14:15:02.070479|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Empty string returned from HTTP post.|91|1||6
2020-11-03 14:15:02.072479|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Total Time: 428ms (Count=1, Min=428ms, Max=428ms, Avg=428ms)|92|1||6
2020-11-03 14:15:02.072479|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| DeepStack (URL) Time: 45ms (Count=1, Min=45ms, Max=45ms, Avg=45ms)|93|1||6
2020-11-03 14:15:02.072479|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| File lock Time: 3ms (Count=1, Min=3ms, Max=3ms, Avg=3ms)|94|1||6
2020-11-03 14:15:02.072479|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Image Queue Time: 322ms (Count=1, Min=322ms, Max=322ms, Avg=322ms)|95|1||6
2020-11-03 14:15:02.072479|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Image Queue Depth: 1 (Count=1, Min=1, Max=1, Avg=1)|96|1||6
2020-11-03 14:15:02.072479|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|None|...Problem with AI URL: '' (URL ErrCount=2, max allowed of 5)|97|0||6
2020-11-03 14:15:02.073478|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| ...Putting image back in queue due to URL '' problem (QueueTime=0.0, Image ErrCount=0, Image RetryCount=1, URL ErrCount=2): 'S:\BI_AI\Front_Cam.20201103_141501392.jpg', ImageProcessQueue.Count=0|98|1||6
2020-11-03 14:15:02.397277|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- Waiting 30 seconds before retrying bad URL. (ErrCount=2 of 5, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:15:02.397277|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- All URL's are in use or disabled, waiting...|100|0||5
2020-11-03 14:15:03.593535|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |101|1||8
2020-11-03 14:15:03.593535|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141503392.jpg| ====================== Adding new image to queue (Count=1): S:\BI_AI\Front_Cam.20201103_141503392.jpg|102|1||8
2020-11-03 14:15:05.475426|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |103|1||14
2020-11-03 14:15:05.475426|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141505392.jpg| ====================== Adding new image to queue (Count=2): S:\BI_AI\Front_Cam.20201103_141505392.jpg|104|1||14
2020-11-03 14:15:07.609134|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |105|1||8
2020-11-03 14:15:07.609134|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141507392.jpg| ====================== Adding new image to queue (Count=3): S:\BI_AI\Front_Cam.20201103_141507392.jpg|106|1||8
2020-11-03 14:15:09.578159|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |107|1||14
2020-11-03 14:15:09.578159|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141509402.jpg| ====================== Adding new image to queue (Count=4): S:\BI_AI\Front_Cam.20201103_141509402.jpg|108|1||14
2020-11-03 14:15:11.666883|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |109|1||8
2020-11-03 14:15:11.666883|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141511473.jpg| ====================== Adding new image to queue (Count=5): S:\BI_AI\Front_Cam.20201103_141511473.jpg|110|1||8
2020-11-03 14:15:13.705941|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |111|1||14
2020-11-03 14:15:13.705941|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141513473.jpg| ====================== Adding new image to queue (Count=6): S:\BI_AI\Front_Cam.20201103_141513473.jpg|112|1||14
2020-11-03 14:15:15.660740|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|None| |113|1||8
2020-11-03 14:15:15.660740|Debug|AITOOLS.EXE|OnCreated|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141515473.jpg| ====================== Adding new image to queue (Count=7): S:\BI_AI\Front_Cam.20201103_141515473.jpg|114|1||8
2020-11-03 14:15:31.526858|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- Trying previously failed URL again after 30 seconds. (ErrCount=2, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:15:31.526858|Debug|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Adding task for file 'Front_Cam.20201103_141501392.jpg' (Image QueueTime='0.5' mins, URL Queue wait='29129ms', URLOrder=1 of 1, URLOriginalOrder=1) on URL '2020-11-03 14:15:31.526858|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Starting analysis of S:\BI_AI\Front_Cam.20201103_141501392.jpg...|117|1||12
2020-11-03 14:15:31.563835|Debug|AITOOLS.EXE|IsValidImage|192.168.1.18:32773|Front_AI|None| Image file is valid: Front_Cam.20201103_141501392.jpg|118|2||12
2020-11-03 14:15:31.565833|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| (1/6) Uploading a 2669330 byte image to DeepQuestAI Server at 2020-11-03 14:15:31.573828|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Got http status code 'Forbidden' (403) in 8ms: Forbidden|120|1||9
2020-11-03 14:15:31.574828|Error|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Empty string returned from HTTP post.|121|1||9
2020-11-03 14:15:31.575828|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Total Time: 29932ms (Count=2, Min=428ms, Max=29932ms, Avg=15180ms)|122|1||9
2020-11-03 14:15:31.575828|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| DeepStack (URL) Time: 8ms (Count=2, Min=8ms, Max=45ms, Avg=27ms)|123|1||9
2020-11-03 14:15:31.575828|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| File lock Time: 0ms (Count=1, Min=3ms, Max=3ms, Avg=3ms)|124|1||9
2020-11-03 14:15:31.575828|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Image Queue Time: 29883ms (Count=2, Min=322ms, Max=29883ms, Avg=15103ms)|125|1||9
2020-11-03 14:15:31.575828|Debug|AITOOLS.EXE|DetectObjects|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| Image Queue Depth: 1 (Count=8, Min=1, Max=7, Avg=4)|126|1||9
2020-11-03 14:15:31.576826|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|None|...Problem with AI URL: '' (URL ErrCount=4, max allowed of 5)|127|0||9
2020-11-03 14:15:31.576826|Info|AITOOLS.EXE|ImageQueueLoop|192.168.1.18:32773|Front_AI|Front_Cam.20201103_141501392.jpg| ...Putting image back in queue due to URL '' problem (QueueTime=0.5, Image ErrCount=0, Image RetryCount=2, URL ErrCount=4): 'S:\BI_AI\Front_Cam.20201103_141501392.jpg', ImageProcessQueue.Count=7|128|1||9
2020-11-03 14:15:31.786313|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- Waiting 30 seconds before retrying bad URL. (ErrCount=4 of 5, Setting 'MinSecondsBetweenFailedURLRetry'=30): 2020-11-03 14:15:31.786313|Info|AITOOLS.EXE|WaitForNextURL|192.168.1.18:32773|Front_AI|None|---- All URL's are in use or disabled, waiting...|130|0||12
 
@105437 - From the error, the problem still does not look like it is on the AITOOL end. I dont think you have VISION-DETECTION=True set correct as talked about above. I wouldnt know how to do that for QNAP.

Same error here, and I'm pretty sure it is because he is using VISION-SCENE=True not VISION-DETECTION=True:

Also I saw the Deepstack tab > STOP being used in the log before - to be clear, that is only for the Windows version running on the same machine. Nothing to do with the QNAP version. And you wouldn't see those PYTHON errors from qnap either.
 
Hi All,

I have some quick questions and looking for some help

1) How do I actually open @Chris Dodge version of the AI Tool? I installed Visual Studio, but every time that I unzip and click on the bi-aidetection file, it just opens Visual Studio and not the app -- Believe that I figured this one out. Had to build in VS, and the file is in SRC/UI/BIN,DEBUG/AITool
2) I am trying to figure out how to limit direct Blue Iris alerts to only those that AI Tool has determined is valid.... Is there any way to do this, or is it only possible to completely remove Blue Iris notifications and go through telegram? (Is that what the MQTT setting is?)
3) The masking instructions are a bit complex for me.... Is it possible to get some additional help for this? I am trying to mask cars in my driveway that show false positive (I only want to mask the cars, so if someone walks by, that still be a valid alert).
 
Last edited:
@105437 - From the error, the problem still does not look like it is on the AITOOL end. I dont think you have VISION-DETECTION=True set correct as talked about above. I wouldnt know how to do that for QNAP.

Same error here, and I'm pretty sure it is because he is using VISION-SCENE=True not VISION-DETECTION=True:

Also I saw the Deepstack tab > STOP being used in the log before - to be clear, that is only for the Windows version running on the same machine. Nothing to do with the QNAP version. And you wouldn't see those PYTHON errors from qnap either.
Thanks @Chris Dodge, I can't seem to find a way to set the environment variable so that is enabled when it starts on the QNAP in the Docker container. Maybe someone else knows how to do that. Yes, I turned off the Windows version just to make sure it was only trying to go to the QNAP. Thanks
 
Stupid question I apologize as possibly somewhere in the 115 pages.

How to people get the MQTT "label (confidence)" pairs out of the @Chris Dodge fork (which is excellent) to use in Home Assistant and/or NodeRed? The sensor currently gets this to it:
Code:
Person (80%),Car (96%),Car (41%),Truck (63%),Potted plant (42%),
 
Hi All,

I have some quick questions and looking for some help

1) How do I actually open @Chris Dodge version of the AI Tool? I installed Visual Studio, but every time that I unzip and click on the bi-aidetection file, it just opens Visual Studio and not the app -- Believe that I figured this one out. Had to build in VS, and the file is in SRC/UI/BIN,DEBUG/AITool
2) I am trying to figure out how to limit direct Blue Iris alerts to only those that AI Tool has determined is valid.... Is there any way to do this, or is it only possible to completely remove Blue Iris notifications and go through telegram? (Is that what the MQTT setting is?)
3) The masking instructions are a bit complex for me.... Is it possible to get some additional help for this? I am trying to mask cars in my driveway that show false positive (I only want to mask the cars, so if someone walks by, that still be a valid alert).

@Chris Dodge -- are you able to help with questions 2 and 3?
 
@Nick3399 - run through instructions on first tab to start with. That will get BI set up correctly. In AITOOL, your TRIGGER url will be in Camera > ACTIONS button, so that will look a little different. Also, enable Camera > Dynamic masking. This will auto mask temporary objects like a neighbor car visiting or things that Deepstack doesnt detect correctly. For a permanate mask to ALWAYS prevent alerts, it is much easier than the first page instructions. Just go to Cameras > CUSTOM button and draw the mask over objects.
 
Thanks @Chris Dodge, I can't seem to find a way to set the environment variable so that is enabled when it starts on the QNAP in the Docker container. Maybe someone else knows how to do that. Yes, I turned off the Windows version just to make sure it was only trying to go to the QNAP. Thanks

If you have a location to change the start command for the docker you can add the environment variables on the start line.
For example: docker run -e VISION-DETECTION =True -v localstorage:/datastore -p 80:5000 deepquestai/deepstack:latest

But I think the easy answer is to just add the variables through the UI.


I found a few links that may help.

If you look at the this link Setup HomeAssistant on QNAP Container using Docker – Poyu do you see an option on the left side for environment variables ? see below image from the link listed.

1604503834683.png


Last I found this link that talks about working within the container config files.

Hope this helps some.
 
  • Like
Reactions: 105437
@Chris Dodge -- are you able to help with questions 2 and 3?

Nick, I'm not positive what your question (or rather issue) is about only getting relevant alerts. However, if you mean a notification through the Blue Iris mobile app, here is what I did.

At first I was getting an alert on all motion. I went into the alert tab for the camera and unchecked everything except External. This caused the camera to only alert me when an external source (AI tool) confirmed a valid alert.
 
Nick, I'm not positive what your question (or rather issue) is about only getting relevant alerts. However, if you mean a notification through the Blue Iris mobile app, here is what I did.

At first I was getting an alert on all motion. I went into the alert tab for the camera and unchecked everything except External. This caused the camera to only alert me when an external source (AI tool) confirmed a valid alert.

Yeah that is exactly what im trying to do - Are you referring to these settings right here? -- How does AI Tool alert or notify Blue Iris of a valid alert though?
Screen Shot 2020-11-04 at 11.02.01 AM.png
 
Yeah that is exactly what im trying to do - Are you referring to these settings right here? -- How does AI Tool alert or notify Blue Iris of true vs false alerts though?

Yes sir. If you setup AI tool and Deep Stack on the first page, the AI tool will send the image to deepstack, verify there is a person in it, then send an external trigger to Blue Iris that the alert was valid and to record/send alert.
 
Yes sir. If you setup AI tool and Deep Stack on the first page, the AI tool will send the image to deepstack, verify there is a person in it, then send an external trigger to Blue Iris that the alert was valid and to record/send alert.
Oh okay perfect! I did all of that, I just wasn’t sure if I was missing something to connect AI tool to Blue Iris - will try and test out tonight!
Also for the masking question, I have reviewed all documentation but I’m looking for specifically if I usually have cars parked in driveway, I mask them out, but I only want to mask cars in the area, so if a person walks in mask it still picks up... is that not possible?
 
Oh okay perfect! I did all of that, I just wasn’t sure if I was missing something to connect AI tool to Blue Iris - will try and test out tonight!
Also for the masking question, I have reviewed all documentation but I’m looking for specifically if I usually have cars parked in driveway, I mask them out, but I only want to mask cars in the area, so if a person walks in mask it still picks up... is that not possible?

As far as I know, that is not possible. You could set up two separate cameras pointing to the same cameras. So Driveway-Car and Driveway-Person. Then add both in AI tools. For the Car one, add the mask and check to only detect cars. Then for the Person one, do not add a mask but uncheck alerting for cars. You can then Hide one of the cameras in Blue Iris so you dont have to see or deal with it. In the AI Tools, have both cameras send the trigger alert to the one camera you want. So both Driveway-Car and Driveway-Person will send a trigger to Driveway-Person. I've never tried this but it seems like it would work. You also might be able to use one camera and just create two AI tools cameras that reference the same image created. Not sure what would happen when both try to process one file.
 
As far as I know, that is not possible. You could set up two separate cameras pointing to the same cameras. So Driveway-Car and Driveway-Person. Then add both in AI tools. For the Car one, add the mask and check to only detect cars. Then for the Person one, do not add a mask but uncheck alerting for cars. You can then Hide one of the cameras in Blue Iris so you dont have to see or deal with it. In the AI Tools, have both cameras send the trigger alert to the one camera you want. So both Driveway-Car and Driveway-Person will send a trigger to Driveway-Person. I've never tried this but it seems like it would work. You also might be able to use one camera and just create two AI tools cameras that reference the same image created. Not sure what would happen when both try to process one file.


Okay, thanks. And sorry one last question :( How do I add the summary/description & the confidence into the blue iris push notification? I see that AI Tool updates the stream with the identified items and confidence, but when I tried adding &summary into the 'text' section within BI alerts, it didn't work properly... Ideally, I am only looking to add 'Person + Confidence' to the push notification when a person is detected, and not all of the other things it finds (ex. couch, bed)
 
Last edited:
You also might be able to use one camera and just create two AI tools cameras that reference the same image created. Not sure what would happen when both try to process one file.

It will only process in one camera- but Chris may change that if you ask and he can!
 
Has anyone tried "faking" out BI and smartsentry.ai by redirecting smarsentry.ai to 127.0.0.1 using the Windows 'hosts' file? Then on the local server, run a webserver that 1) returns the necessary 'license' response and 2) returns a correctly formatted response using the image(s) that BI provides? This would allow for seamless integration with BI, rather than relying on saving a snapshot to a separate folder and posting back a trigger event to BI such as AITool does...