VorlonCD / bi-aidetection

Alarm system for Blue Iris based on Artificial Intelligence.
https://ipcamtalk.com/threads/tool-tutorial-free-ai-person-detection-for-blue-iris.37330/
GNU General Public License v2.0
203 stars 45 forks source link

Cancel Flag Error #2

Closed Village-Guy closed 4 years ago

Village-Guy commented 4 years ago

Just checking out the cancel flag but unable get past the error in the log. I have confirmed that the command to BI is accepted. This what I am sending.

http://192.168.1.6:81/admin?camera=Drive&flagalert=0&user=admin&pw=xxxxx

[21:56:31.665]: OnCreatedAsync> Adding new image to queue: E:\BlueIris\AI_Input\Drive.20200830_215631624.jpg [21:56:31.674]: ImageQueueLoop> Adding task #1 for file 'Drive.20200830_215631624.jpg' on URL ' http://127.0.0.1:82/v1/vision/detection ' [21:56:31.677]: ImageQueueLoop> Waiting for any of 1 tasks to get done... [21:56:31.693]: DetectObjects> 127.0.0.1:82 - Starting analysis of E:\BlueIris\AI_Input\Drive.20200830_215631624.jpg... [21:56:31.695]: DetectObjects> 127.0.0.1:82 - (1/6) Uploading image to DeepQuestAI Server at http://127.0.0.1:82/v1/vision/detection [21:56:34.003]: DetectObjects> 127.0.0.1:82 - (2/6) Posted in 2279ms, Received a 33 byte response. [21:56:34.006]: DetectObjects> 127.0.0.1:82 - (3/6) Processing results... [21:56:34.009]: DetectObjects> 127.0.0.1:82 - Detected objects: [21:56:34.011]: DetectObjects> 127.0.0.1:82 - (5/6) Performing alert CANCEL actions: [21:56:34.020]: Trigger> Index was out of range. Must be non-negative and less than the size of the collection. | Parameter name: index [ArgumentOutOfRangeException] Mod: d__25 Line:1115:29 [21:56:34.031]: CallTriggerURLs> ERROR: Could not trigger URL '', please check if '' is correct and reachable: Value cannot be null. | Parameter name: address [ArgumentNullException] Mod: CallTriggerURLs(String[] trigger_urls) Line:993:21 [21:56:34.088]: Save> Settings saved to C:\Users\Chris\Documents\AI Tool\Release\AITool.Settings.json [21:56:34.088]: DetectObjects> 127.0.0.1:82 - (6/6) Camera Drive caused a false alert, nothing detected. [21:56:34.102]: DetectObjects> 127.0.0.1:82 - Adding false to history list. [21:56:34.113]: DetectObjects> 127.0.0.1:82 - ...Object detection finished: [21:56:34.115]: DetectObjects> 127.0.0.1:82 - Total Time: 2432ms (Count=1, Min=2432ms, Max=2432ms, Avg=2432ms) [21:56:34.118]: DetectObjects> 127.0.0.1:82 - DeepStack Time: 2279ms (Count=1, Min=2279ms, Max=2279ms, Avg=2279ms) [21:56:34.121]: DetectObjects> 127.0.0.1:82 - File lock Time: 0ms (Count=0, Min=0ms, Max=0ms, Avg=ms) [21:56:34.123]: DetectObjects> 127.0.0.1:82 - Image Queue Time: 12ms (Count=1, Min=12ms, Max=12ms, Avg=12ms) [21:56:34.127]: DetectObjects> 127.0.0.1:82 - Image Queue Depth: 1 (Count=1, Min=1, Max=1, Avg=1) [21:56:34.132]: ImageQueueLoop> ...Task at index 0 done. [21:56:34.134]: ImageQueueLoop> Done processing current image queue.

VorlonCD commented 4 years ago

Pretty sure I fixed this yesterday with the latest version: https://github.com/VorlonCD/bi-aidetection/releases Let me know if that is not the case.

Village-Guy commented 4 years ago

This log is taken with the latest release: [22:22:23.225]: OnCreatedAsync> Adding new image to queue: E:\BlueIris\AI_Input\Drive._E24233880_20200901222222927_TIMING.jpg [22:22:23.319]: ImageQueueLoop> Adding task #1 for file 'Drive._E24233880_20200901222222927_TIMING.jpg' on URL 'http://127.0.0.1:82/v1/vision/detection' [22:22:23.325]: ImageQueueLoop> Waiting for any of 1 tasks to get done... [22:22:23.339]: DetectObjects> 127.0.0.1:82 - Starting analysis of E:\BlueIris\AI_Input\Drive._E24233880_20200901222222927_TIMING.jpg... [22:22:23.344]: DetectObjects> 127.0.0.1:82 - (1/6) Uploading image to DeepQuestAI Server at http://127.0.0.1:82/v1/vision/detection [22:22:25.658]: DetectObjects> 127.0.0.1:82 - (2/6) Posted in 2285ms, Received a 33 byte response. [22:22:25.661]: DetectObjects> 127.0.0.1:82 - (3/6) Processing results... [22:22:25.664]: DetectObjects> 127.0.0.1:82 - Detected objects: [22:22:25.666]: DetectObjects> 127.0.0.1:82 - (5/6) Performing alert CANCEL actions: [22:22:25.681]: Trigger> Value cannot be null. | Parameter name: stringToEscape [ArgumentNullException] Mod: d__25 Line:1129:29 [22:22:25.740]: Save> Settings saved to C:\Users\Chris\Documents\AI Tool-Special\Release\AITool.Settings.json [22:22:25.740]: DetectObjects> 127.0.0.1:82 - (6/6) Camera Driveway caused a false alert, nothing detected. [22:22:25.743]: DetectObjects> 127.0.0.1:82 - Adding false to history list. [22:22:25.753]: DetectObjects> 127.0.0.1:82 - ...Object detection finished: [22:22:25.755]: DetectObjects> 127.0.0.1:82 - Total Time: 115ms (Count=1, Min=115ms, Max=115ms, Avg=115ms) [22:22:25.758]: DetectObjects> 127.0.0.1:82 - DeepStack Time: 2285ms (Count=1, Min=2285ms, Max=2285ms, Avg=2285ms) [22:22:25.763]: DetectObjects> 127.0.0.1:82 - File lock Time: 3ms (Count=1, Min=3ms, Max=3ms, Avg=3ms) [22:22:25.766]: DetectObjects> 127.0.0.1:82 - Image Queue Time: 109ms (Count=1, Min=109ms, Max=109ms, Avg=109ms) [22:22:25.769]: DetectObjects> 127.0.0.1:82 - Image Queue Depth: 1 (Count=1, Min=1, Max=1, Avg=1) [22:22:25.772]: ImageQueueLoop> ...Task at index 0 done. [22:22:25.774]: ImageQueueLoop> Done processing current image queue.

[22:22:53.244]: OnCreatedAsync> Adding new image to queue: E:\BlueIris\AI_Input\Drive._E24233880_20200901222252934_TIMING.jpg [22:22:53.302]: ImageQueueLoop> Adding task #1 for file 'Drive._E24233880_20200901222252934_TIMING.jpg' on URL 'http://127.0.0.1:82/v1/vision/detection' [22:22:53.305]: ImageQueueLoop> Waiting for any of 1 tasks to get done... [22:22:53.306]: DetectObjects> 127.0.0.1:82 - Starting analysis of E:\BlueIris\AI_Input\Drive._E24233880_20200901222252934_TIMING.jpg... [22:22:53.336]: DetectObjects> 127.0.0.1:82 - (1/6) Uploading image to DeepQuestAI Server at http://127.0.0.1:82/v1/vision/detection [22:22:55.538]: DetectObjects> 127.0.0.1:82 - (2/6) Posted in 2199ms, Received a 33 byte response. [22:22:55.542]: DetectObjects> 127.0.0.1:82 - (3/6) Processing results... [22:22:55.543]: DetectObjects> 127.0.0.1:82 - Detected objects: [22:22:55.545]: DetectObjects> 127.0.0.1:82 - (5/6) Performing alert CANCEL actions: [22:22:55.547]: Trigger> Value cannot be null. | Parameter name: stringToEscape [ArgumentNullException] Mod: d__25 Line:1129:29 [22:22:55.558]: Save> Settings saved to C:\Users\Chris\Documents\AI Tool-Special\Release\AITool.Settings.json [22:22:55.558]: DetectObjects> 127.0.0.1:82 - (6/6) Camera Driveway caused a false alert, nothing detected. [22:22:55.562]: DetectObjects> 127.0.0.1:82 - Adding false to history list. [22:22:55.564]: DetectObjects> 127.0.0.1:82 - ...Object detection finished: [22:22:55.567]: DetectObjects> 127.0.0.1:82 - Total Time: 110ms (Count=2, Min=110ms, Max=115ms, Avg=113ms) [22:22:55.571]: DetectObjects> 127.0.0.1:82 - DeepStack Time: 2199ms (Count=2, Min=2199ms, Max=2285ms, Avg=2242ms) [22:22:55.574]: DetectObjects> 127.0.0.1:82 - File lock Time: 26ms (Count=2, Min=3ms, Max=26ms, Avg=15ms) [22:22:55.597]: DetectObjects> 127.0.0.1:82 - Image Queue Time: 58ms (Count=2, Min=58ms, Max=109ms, Avg=84ms) [22:22:55.600]: DetectObjects> 127.0.0.1:82 - Image Queue Depth: 1 (Count=2, Min=1, Max=1, Avg=1) [22:22:55.603]: ImageQueueLoop> ...Task at index 0 done. [22:22:55.605]: ImageQueueLoop> Done processing current image queue.

VorlonCD commented 4 years ago

Oh yup, just squashed the bug, but it may not be until tomorrow before I can update the release

Village-Guy commented 4 years ago

No worries. Just found out the flag does not cancel the Record it just clears the Alert. I was hoping it would enable the trigger event to be cancelled. Thanks for all you work, I and many others I'm sure appreciate it.