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

yusufptl

n3wb
Joined
Nov 5, 2020
Messages
11
Reaction score
1
Location
South Africa
[03.12.2020, 06:25:48.577]: ERROR: Can't write to cameras/history.csv!


Any idea why I'm getting this error?

Sent from my SM-N960F using Tapatalk
 

bqz

Young grasshopper
Joined
Jul 14, 2016
Messages
36
Reaction score
16
Location
Avellaneda, Buenos Aires, Argentina
Hi!

AI Tool is a wonderful tool! I just started evaluating it since a couple of days ago! Thank you for sharing it.

I would like to make a modification proposal. Taking my personal case as an example, I would need each Telegram chat-id to be per camera, and not a single global chat-id. In my case, this need is due to the fact that certain cameras are intended to be shown by some users, and others by a different group of people, who do not necessarily share the same cameras.

Or may be anyone has a different idea to accomplish this?

I say it again, the tool is excellent and the tutorial to put it into operation very well explained. Thanks a lot.
 

seth-feinberg

Young grasshopper
Joined
Aug 28, 2020
Messages
87
Reaction score
15
My goal is to use the substream at SD resolutions for AI detection (and triggers) as well as recording the SD stream 24/7. I only want to keep HD clips that are triggered by Deepstack. I've seen the videos on this, but what is confusing is it's hard to tell how much is still relevant with the current BIv5. Do I want/need to create both HD and SD cameras? Is that "cloning" or something else entirely? Conversely, can a single logical BI camera use both streams to send the image to AItools->Deepstack and then be triggered by the AI engine?
So, obviously, i struggled with this a lot (maybe I still do!) but my current understanding is this:
  • Dual Streams: when setting up your cameras IN Blue Iris, you define a second stream (which is your cameras SD substream you defined IN the Camera's Settings i.e. Amcrest). I believe the attached screenshot from this link: danecreekphotography/node-deepstackai-trigger shows this. This, I believe, allows BI to show the substream when in the Blue Iris interface in the SD resolution (when that particular Camera is not focused or in a large format), where an HD resolution would be a waste of resources (since it's encoding on the fly and HD would be pointless in a small, say, 2" x 1" box in the Blue Iris interface).
  • Cloned Cameras: When you add TWO "different" cameras into BI. I put different in quotes because again it's the same camera, just the HD Stream and its equivalent SD substream (again set IN the Camera's Settings) BUT you add both the HD Stream AND the SD substream as their own cameras in BI (i.e. if viewing all cameras in BI, there are 2 cameras that show the same picture, one HD one SD).
You can do BOTH. As in you can set your HD camera with the Dual Stream setting in the screenshot, and add the Cloned camera with the SD substream. This is the method that The Hookup Video and the above link both use, but only the link makes reference to the Dual Streams. I hope this helps and that I didn't add more confusion (and really hope I'm not wrong or it's back to the drawing board for me).
 

Attachments

seth-feinberg

Young grasshopper
Joined
Aug 28, 2020
Messages
87
Reaction score
15
[03.12.2020, 06:25:48.577]: ERROR: Can't write to cameras/history.csv!


Any idea why I'm getting this error?

Sent from my SM-N960F using Tapatalk
I am FAR from an expert, so this might be less than helpful, but seems like a permissions issue? I also know the latest AI Tool doesn't use the Cameras folder any more, so what version of AITool are you using?
 
Joined
Sep 21, 2020
Messages
12
Reaction score
11
Location
UK
Hi!

AI Tool is a wonderful tool! I just started evaluating it since a couple of days ago! Thank you for sharing it.

I would like to make a modification proposal. Taking my personal case as an example, I would need each Telegram chat-id to be per camera, and not a single global chat-id. In my case, this need is due to the fact that certain cameras are intended to be shown by some users, and others by a different group of people, who do not necessarily share the same cameras.

Or may be anyone has a different idea to accomplish this?

I say it again, the tool is excellent and the tutorial to put it into operation very well explained. Thanks a lot.
I also have this need, I haven't been able to find any other way to accomplish this. Different Chat ID's would also enable custom notifications in the Telegram app i.e only with sound if it's really important. I have previously suggested it but if you add here this it will help: VorlonCD/bi-aidetection
 

Tinbum

Pulling my weight
Joined
Sep 5, 2017
Messages
446
Reaction score
126
Location
UK
I also have this need, I haven't been able to find any other way to accomplish this. Different Chat ID's would also enable custom notifications in the Telegram app i.e only with sound if it's really important. I have previously suggested it but if you add here this it will help: VorlonCD/bi-aidetection
Chris is working on it.
 
  • Like
Reactions: bqz

blargrx

n3wb
Joined
Oct 28, 2018
Messages
13
Reaction score
11
Location
Stockton, CA
Hello everyone, basic question before I get started on this project. Right now my family is using the BI ios app that pings notifications and previews when we have an alert. What does the end result of the project look like, you get alerts from telegram or from BI? My family would prefer to continue to get notifications only in BI app.

my understanding of how this all works is we are using 2 streams, SD is continuously recording and high sensitivity so it triggers to the jpg frequently to get analyzed by the deepstack AI. once confirmed, it triggers the HD recording for the alert. Would the BI app get notifications for both triggers on the SD and HD?

also what if we were not worried about our BI specs, plenty of HD and ram, can you just use the HD stream for both?
 

BruceWA

n3wb
Joined
Feb 27, 2018
Messages
8
Reaction score
1
I would like to express my gratitude and admiration for the guys on this forum who have the interest and ability to make programs such as AI Tool by Gentle pumpkin and latterly Chris Dodge's Fork on this to Releases · VorlonCD/bi-aidetection. I have been a Blue Iris user for a number of years and it gets better and better. And now I am using VorlonCD/bi-aidetection with my Blue Iris.
My use for Blue Iris is not just survellance around my property for the usual stuff but mainly to see what wildlife is around during the night. In order to achieve the best results for that the motion trigger settings have to be set very sensitive with the inevitable numerous false triggers, especially when it rains. But combining judicious use of Cloned Cameras, VorlonCD Ai tool , DeepQuestAI and Docker things are getting better and better. I am sure I could improve things more but so far I am happy.
But I know from things I get notified about that Chris and his friends are making further inroads to improving VorlonCD adding things like amazon rekognition AI instead of DeepquestAI, thought to give better identification of items at night. But try as I might I cannot master the compiling of the various additions to VorlonCD AI releases and I have to rely totally on the Releases. Thanks again Chris and friends but please update the Release files with current addition when you can.
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
I would like to express my gratitude and admiration for the guys on this forum who have the interest and ability to make programs such as AI Tool by Gentle pumpkin and latterly Chris Dodge's Fork on this to Releases · VorlonCD/bi-aidetection. I have been a Blue Iris user for a number of years and it gets better and better. And now I am using VorlonCD/bi-aidetection with my Blue Iris.
My use for Blue Iris is not just survellance around my property for the usual stuff but mainly to see what wildlife is around during the night. In order to achieve the best results for that the motion trigger settings have to be set very sensitive with the inevitable numerous false triggers, especially when it rains. But combining judicious use of Cloned Cameras, VorlonCD Ai tool , DeepQuestAI and Docker things are getting better and better. I am sure I could improve things more but so far I am happy.
But I know from things I get notified about that Chris and his friends are making further inroads to improving VorlonCD adding things like amazon rekognition AI instead of DeepquestAI, thought to give better identification of items at night. But try as I might I cannot master the compiling of the various additions to VorlonCD AI releases and I have to rely totally on the Releases. Thanks again Chris and friends but please update the Release files with current addition when you can.
Here you go, this is a very recent build that I am personally using and can vouch for VorlonCD AITool Version 2.0.195.7637 Build 30/11/2020
 
Last edited:

BruceWA

n3wb
Joined
Feb 27, 2018
Messages
8
Reaction score
1
Thanks for that but as a matter of interest what is the version number, I am currently running Version 2.0.134.7620 Built on 11/11/2020
Ah Got it Version 2.0.195.7637 Build 30/11/2020. Installed now to see what changes there are. Thanks a lot.
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
I note from the last few posts that there is still confusion regarding Cloned cameras and Single \ Dual ( SD/HD setup)
I have made some notes below that I hope will help clear up the confusion and hopefully not make matters worse;)
  1. There is NO connection between Cloned camera setups and a setup for Single \ Dual stream. They are separate topics and NOT related.
  2. Cloned cameras ARE required if you only wish to record when your camera triggers on an AITool qualified event and do NOT want to record all events or continously.
  3. Single \ Dual Stream, BI when correctly configured has the ability to reduce CPU load by monitoring for movement in low resolution. When triggered the event JPEG is saved in maximum resolution to aid AITool in analysing the captured event image. This is especially useful as the CPU load is substantially reduced when you have a lot of cameras.

  4. Cloned Cameras The Cloned principle can be considered as a Master & Slave with the Master generating Triggers that are actioned by the Slave when AITool qualifies the JPEG generated by the Master. The Master and Slave are the same camera but setup within BI twice with one of them selected within BI as the Clone (copy of the master but setup slightly differently) By marking one configuration as the Clone, BI will not use additional resources over and above the Master camera. If neither is marked as a Clone, it will still work except BI will treat the camera as two separate cameras and CPU load will be increased accordingly. The Slave will always record in the selected resolution when AITOOL sends the command to the Slave camera.

  5. As a general rule if you intend to record every event you do NOT need to use Cloned cameras. IMHO it is also doubtful that Dual stream functionality brings much to the party as you will most probably be recording all events in HD and only use AITool to qualify events and index them.

Please feel free to contribute to the above text if you find it in error as I do not profess to be an expert on the subject.
 
Last edited:

balucanb

Getting the hang of it
Joined
Sep 19, 2020
Messages
146
Reaction score
23
Location
TX
Hello everyone, basic question before I get started on this project. Right now my family is using the BI ios app that pings notifications and previews when we have an alert. What does the end result of the project look like, you get alerts from telegram or from BI? My family would prefer to continue to get notifications only in BI app.

my understanding of how this all works is we are using 2 streams, SD is continuously recording and high sensitivity so it triggers to the jpg frequently to get analyzed by the deepstack AI. once confirmed, it triggers the HD recording for the alert. Would the BI app get notifications for both triggers on the SD and HD?

also what if we were not worried about our BI specs, plenty of HD and ram, can you just use the HD stream for both?
How you set it up is really going to be based on what you want. You do not need to use 2 streams or you can, you don't have to use Telegram, you can use MQTT to push notifications, you can only use the AI on some or all your cameras etc. As much as you really do not want to ( assuming you were like me) I highly suggest you start at page 1 and read this whole thread, this project has really changed from Gentlepumpkins original and is actively being improved daily. There may be someone else that chimes in here and can help you more than I can but that is my advice.
 

balucanb

Getting the hang of it
Joined
Sep 19, 2020
Messages
146
Reaction score
23
Location
TX
Thanks @Tinbum I figured it out..well I think I figured it out, it took me numerous tries but when I cut and pasted everything into the folder it worked! I know it was just stubborn luck because if you asked me what I did I couldn't explain it. :rofl: So a little update- I "thought" all was good because I am getting alerts thru telegram (all cameras) then I go into AI-Tool to check the stats / history tabs and they are all blank and I have 300+ errors :( All the same 2 errors, No predictions... and Max queue.. Again I am getting alert images? ...Well crap.
 
Last edited:

CAL7

Getting the hang of it
Joined
Nov 26, 2020
Messages
64
Reaction score
26
Location
Florida
Thanks, @Village Guy . You've been very helpful.
As a general rule if you intend to record continuously you do NOT need to use Cloned cameras. IMHO it is also doubtful that Dual stream functionality brings much to the party as you will most probably be recording continuously in HD and only use AITool to qualify events and index them.
This is where I am still having some confusion. Specifically, I want to record the substream (SD) continuously and use it for alerts. I then only want to record the mainstream (4K) based on the substream alerts. Does your reference to "record continuously" mean just to continuously record the mainstream? Or can continuous recording be designated for the substream as well as using for alerts?
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
Thanks, @Village Guy . You've been very helpful.


This is where I am still having some confusion. Specifically, I want to record the substream (SD) continuously and use it for alerts. I then only want to record the mainstream (4K) based on the substream alerts. Does your reference to "record continuously" mean just to continuously record the mainstream? Or can continuous recording be designated for the substream as well as using for alerts?
If you only want to record your HD stream when AITool qualifies the event then you need to configure your camera or cameras using the clone configuration. So you need two configurations setup for each of your cameras. One camera configuration will be used to monitor and trigger on an event. The other will receive commands from Aitool to start recording for the period that you have defined in the configuration.
 

Village Guy

Pulling my weight
Joined
May 6, 2020
Messages
291
Reaction score
161
Location
UK
Thanks, @Village Guy . You've been very helpful.


This is where I am still having some confusion. Specifically, I want to record the substream (SD) continuously and use it for alerts. I then only want to record the mainstream (4K) based on the substream alerts.
Can I recommend that you first of all get your system functional before discussing the resolution of streams. It really makes no difference to the fundamental configuration and is confusing you. Once you have Aitool functional everything else will fall into place.
 

balucanb

Getting the hang of it
Joined
Sep 19, 2020
Messages
146
Reaction score
23
Location
TX
Need some help with compiling the code, Trying to learn but am having issues, can someone help shove me in the right direction- after reading the few posts here and a bunch of Googling I was able to use VS19 to get it compiled, I pulled the code from VorlonCD/bi-aidetection. once done I took a look at the settings.json file and I see a bunch of stuff is different from my current version. I Replaced everything with the new files (after making a B/U) It opened but none of my cameras or any other info came across, also there are some items that if I click on them the program errors out and closes, if were to copy the settings file from the previous version it would work but remove a bunch of items that are in the new (compiled version). So I am at a loss on what to do or how to proceed other than waiting for someone to eventually put a newer version out.
 
Top