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
204 stars 45 forks source link

[Feature Request] MQTT input trigger With Url snapshot #184

Open Meesen0743 opened 3 years ago

Meesen0743 commented 3 years ago

Blue Iris does not have the ability to send a full resolution image if the triggering camera is a sub stream (or has one associated with it). This causes issues when using deep stack to analyze lower resolution images. The problem with swapping sub streams for main streams in BI is limited system recourses.

The solution that I believe would work and be "clean" would operate in the following way:

  1. Sub stream MQTT trigger > AIDetection
  2. Each camera in AIDetection has input path for a URL to pull a full res image direct from selected IP camera to then pass to deepstack.
  3. If there are detections a MQTT output trigger could then be sent to trigger for the main cameras to record in BI.

I would love to make a fork of the project but I do not have the required skills so hoping others may like this feature.

rtman238 commented 3 years ago

Be sure you are using a current version of BI. I use a clone camera with both the main stream and sub stream. The clone camera is detecting motion and generating the jpegs. The clone master is generating alert clips. On the record tab of the clone camera I have the pre trigger video buffer set to 2 seconds. My frame rate is 15 fps and the i-frame interval is 15. When the pre trigger video buffer is set and the record tab is set to generate jpegs BI will try to use the high resolution main stream to generate the jpegs. If you do not get a high resolution jpeg increase the pre trigger video buffer.