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

Another Telegram Issue #36

Closed Judman closed 4 years ago

Judman commented 4 years ago

On 1.77 and cannot get images to Telegram either with a legit trigger or using the settings test button.

I just downloaded, unzipped, and pasted over my previous install.

Legit Trigger

[23:07:11.725]:           ImageQueueLoop> Adding task for file 'AiFP.20200921_230711337.jpg' (Image QueueTime='0.0' mins, URL Queue wait='0ms', URLOrder=1 of 1, URLOriginalOrder=1) on URL 'http://127.0.0.1:82/v1/vision/detection'
[23:07:11.742]:           ImageQueueLoop> Done adding 1 total threads, ErrCnt=0, ImageProcessQueue.Count=0
[23:07:11.803]:            DetectObjects> 127.0.0.1:82 - Starting analysis of C:\BlueIris\AI_Input\AiFP.20200921_230711337.jpg...
[23:07:11.815]:            DetectObjects> 127.0.0.1:82 - (1/6) Uploading a 227228 byte image to DeepQuestAI Server at http://127.0.0.1:82/v1/vision/detection
[23:07:12.327]:            DetectObjects> 127.0.0.1:82 - (2/6) Posted in 598ms, Received a 123 byte response.
[23:07:12.331]:            DetectObjects> 127.0.0.1:82 - (3/6) Processing results...
[23:07:12.350]:            DetectObjects> 127.0.0.1:82 -    Detected objects: Person (61.52%),
[23:07:12.356]:            DetectObjects> 127.0.0.1:82 - (4/6) Checking if detected object is relevant and within confidence limits:
[23:07:12.365]:              Outsidemask> ->Camera has no mask, the object is OUTSIDE of the masked area.
[23:07:12.372]:            DetectObjects> 127.0.0.1:82 -    Person (61.52%) confirmed.
[23:07:12.381]:            DetectObjects> 127.0.0.1:82 - The summary:Person (61.52%)
[23:07:12.388]:            DetectObjects> 127.0.0.1:82 - (5/6) Performing alert actions:
[23:07:12.398]:          CallTriggerURLs> -> trigger URL called: http://192.168.1.10:81/admin?trigger&camera=Porch&user=[user]&pw=[password], response: 'signal=green profile=1 lock=0 clip=520436657 camera=Front Porch '
[23:07:12.408]:                  Trigger> -> ERROR sending image to Telegram.
[23:07:12.431]:            DetectObjects> 127.0.0.1:82 - (6/6) SUCCESS.
[23:07:12.437]:            DetectObjects> 127.0.0.1:82 - Adding detection to history list.
[23:07:12.459]:            DetectObjects> 127.0.0.1:82 -          Total Time:   966ms (Count=10, Min=854ms, Max=1218ms, Avg=1006ms)
[23:07:12.465]:            DetectObjects> 127.0.0.1:82 -DeepStack (URL) Time:   598ms (Count=10, Min=566ms, Max=940ms, Avg=659ms)
[23:07:12.476]:            DetectObjects> 127.0.0.1:82 -      File lock Time:   0ms (Count=0, Min=0ms, Max=0ms, Avg=ms)
[23:07:12.481]:            DetectObjects> 127.0.0.1:82 -    Image Queue Time:   342ms (Count=10, Min=266ms, Max=364ms, Avg=321ms)
[23:07:12.491]:            DetectObjects> 127.0.0.1:82 -   Image Queue Depth:   1 (Count=97, Min=1, Max=1, Avg=1)
[23:07:12.499]:           OnCreatedAsync> 

Test from settings page

[23:16:40.192]:          CallTriggerURLs> -> trigger URL called: http://192.168.1.10:81/admin?trigger&camera=Porch&user=[user]&pw=[password], response: 'signal=green profile=1 lock=0 clip=521693022 camera=Front Porch '
[23:16:40.193]:                  Trigger> -> ERROR sending image to Telegram.
[23:16:40.196]:             btTest_Click> ------ DONE TESTING TRIGGERS --------
Tinbum1 commented 4 years ago

From another post did you;

'make sure before you UNZIP that you right-click > properties > Unblock'

don't know if its related but thought I'd mention it.

Judman commented 4 years ago

I thought I did, but I went ahead and redownloaded, "unblocked", and unzipped 1.77 again. Then I dumped it into my existing AI tools install location and I am still getting the same error.


[08:58:06.014]:           ImageQueueLoop> Adding task for file 'AiFP.20200922_085805605.jpg' (Image QueueTime='0.0' mins, URL Queue wait='0ms', URLOrder=1 of 1, URLOriginalOrder=1) on URL 'http://127.0.0.1:82/v1/vision/detection'
[08:58:06.015]:           ImageQueueLoop> Done adding 1 total threads, ErrCnt=0, ImageProcessQueue.Count=0
[08:58:06.018]:            DetectObjects> 127.0.0.1:82 - Starting analysis of C:\BlueIris\AI_Input\AiFP.20200922_085805605.jpg...
[08:58:06.019]:            DetectObjects> 127.0.0.1:82 - (1/6) Uploading a 351559 byte image to DeepQuestAI Server at http://127.0.0.1:82/v1/vision/detection
[08:58:06.594]:                DeepStack> Server.exe> [GIN] 2020/09/22 - 08:58:06 | 200 |    574.4635ms |       127.0.0.1 | POST     /v1/vision/detection
[08:58:06.595]:            DetectObjects> 127.0.0.1:82 - (2/6) Posted in 574ms, Received a 120 byte response.
[08:58:06.599]:            DetectObjects> 127.0.0.1:82 - (3/6) Processing results...
[08:58:06.603]:            DetectObjects> 127.0.0.1:82 -    Detected objects: Person (99.39%),
[08:58:06.604]:            DetectObjects> 127.0.0.1:82 - (4/6) Checking if detected object is relevant and within confidence limits:
[08:58:06.606]:              Outsidemask> ->Camera has no mask, the object is OUTSIDE of the masked area.
[08:58:06.607]:            DetectObjects> 127.0.0.1:82 -    Person (99.39%) confirmed.
[08:58:06.608]:            DetectObjects> 127.0.0.1:82 - The summary:Person (99.39%)
[08:58:06.609]:            DetectObjects> 127.0.0.1:82 - (5/6) Performing alert actions:
[08:58:06.613]:    MergeImageAnnotations> ...0, LastText='Person (99.39%)' - LastPosition='39,0,266,429'
[08:58:06.624]:    MergeImageAnnotations> Merged 1 detections in 16ms into image C:\Users\VMS-PC\AppData\Local\Temp\AiFP.20200922_085805605.jpg
[08:58:06.636]:          CallTriggerURLs> -> trigger URL called: http://192.168.1.10:81/admin?trigger&camera=Porch&user=[user]&pw=[password], response: 'signal=green profile=1 lock=0 clip=537485847 camera=Front Porch '
[08:58:06.659]:           OnCreatedAsync> 
[08:58:06.660]:           OnCreatedAsync> ====================== Adding new image to queue (Count=1): C:\BlueIris\AI_Input\AiFP.20200922_085806605.jpg
[08:58:06.725]:                  Trigger> -> ERROR sending image to Telegram.
[08:58:06.733]:            DetectObjects> 127.0.0.1:82 - (6/6) SUCCESS.
[08:58:06.734]:            DetectObjects> 127.0.0.1:82 - Adding detection to history list.
[08:58:06.737]:            DetectObjects> 127.0.0.1:82 -          Total Time:   1074ms (Count=2, Min=1074ms, Max=15913ms, Avg=8494ms)
[08:58:06.740]:            DetectObjects> 127.0.0.1:82 -DeepStack (URL) Time:   574ms (Count=2, Min=574ms, Max=15401ms, Avg=7988ms)
[08:58:06.742]:            DetectObjects> 127.0.0.1:82 -      File lock Time:   0ms (Count=0, Min=0ms, Max=0ms, Avg=ms)
[08:58:06.744]:            DetectObjects> 127.0.0.1:82 -    Image Queue Time:   355ms (Count=2, Min=355ms, Max=414ms, Avg=385ms)
[08:58:06.746]:            DetectObjects> 127.0.0.1:82 -   Image Queue Depth:   1 (Count=21, Min=1, Max=15, Avg=7)
[```
VorlonCD commented 4 years ago

Looking at the code, since your log shows NO other indication of telegram error before the ERROR SENDING IMAGE one likely means that something is misconfigured in the two telegram settings on the settings tab. If they look correct, try making a small change to one, saving and reopening the program. Otherwise, close app, and see if anything looks strange in aitool.settings.json with "telegram_chatids" or "telegram_token". They both have to have something in them. (Make backup if you try to modify yourself)

Judman commented 4 years ago

Oh wow.....the chat ID was missing.