Question About Blue Iris and Deepstack Alert Naming

wymangr

n3wb
May 21, 2020
4
1
North Carolina
I just setup Deepstack to use with my instance of Blue Iris. I run a custom python scrip when alerts are triggered that sends the alert image to my slack channel. In that script, I get the latest image from my alerts folder and use that name to populate the image URL that's passed into slack. http://<bi_ip>:<bi_port>/file/clips/<name_of_jpg>. What I notice happening is the alert gets saved with one name, then renamed. My guess is the alert image is created, then deepstack is burning the label mark up to the image and saving it with a new name. What happens is I try to view the image in my slack channel and it doesn't work because that name it was uploaded with doesn't exist anymore.

After Update:
"camera":"FD",
"newalerts":12613,
"newalerttime":"1625451561",
"path":"@27990618.bvr",
"clip":"@27853974.bvr",
"file":"FD.20221019_202125.1869199.5123.29097.30579.jpg",
"memo":"person:54%",
"offset":1869199,
"flags":335740928,
"res":"2560x1920",
"zones":1,
"date":1666227152,
"color":9068350,
"filesize":"29 sec (357K)"

Original:
After Update:
"camera":"FD",
"newalerts":12613,
"newalerttime":"1625451561",
"path":"@27990618.bvr",
"clip":"@27853974.bvr",
"file":"FD.20221019_202125.1864706.3.jpg",
"memo":"person:54%",
"offset":1864706,
"flags":335741184,
"res":"2560x1920",
"zones":1,
"date":1666227152,
"color":9068350,
"filesize":"0 sec (357K)"

Does anyone know of a way to make sure the alert image remains the same name? Is there a way to pass in the what the final name is going to be to they python script? Maybe a different way to get the image url to pass to slack? I've also tried via the blue iris json api, but the same thing happens. Any help is muchly apricated!

1666226301211.png

1666226318272.png
1666226331185.png
 
Last edited:
I was able to get around the issue (so far) by passing in &ALERT_DB into my run action parameters and using the /alerts/<&ALERT_DB> endpoint to grab the image. The only problems I see are: 1. the image is really low quality, and 2. sometimes (maybe due to age), I don't get my image and instead get this:

1666286807209.png
 
If it's suitable for your use case, you can get a better image if you enable adding 'Hi-res JPEG files' to the alerts list, or enable 'Burn label mark-up onto alert images'.