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

Multiple input folders? #208

Open 162884 opened 3 years ago

162884 commented 3 years ago

Would it be possible to create multiple input folders? The reason I ask is because currently Blue Iris is sending the picture from each camera during an alert to the main input folder. I'm interested in utilizing the cameras built-in motion detection by sending that picture for AI analysis to AITool.

VorlonCD commented 3 years ago

Blueiris already lets you assign a folder per camera in camera > record tab > "folder" which is defined in BI Settings >Clips and archiving.

In AITOOL you can also assign an input folder per camera.

162884 commented 3 years ago

Thanks @VorlonCD... I did a poor job of asking my question. Here's what I'd like to do.

Blue Iris - Motion detected via Trigger settings Picture saved to folder -> AI Tool for analysis

Physical camera - Motion detected via internal trip wire Picture FTP'd to a separate AI Input folder -> AI Tool for analysis

Based on this scenario, I'll try adding a new "camera" in AI Tool and have it look at the different input folder where the FTP'd images are stored.

VorlonCD commented 3 years ago

I assume creating a new camera in AITOOL that points to a different input path did the trick? If not, maybe I still dont understand the question.

162884 commented 3 years ago

Unfortunately, I have run into an issue with this. I use all Dahua cameras and I have no control over the filename from each camera when it makes a snapshot from an IVS event. The only way it would work would for me to be able to set up a camera in AI Tool that will process an .jpg within a sub-folder structure.

VorlonCD commented 3 years ago

You can do this with the "Monitor subfolders" checkbox in camera settings. Then, if the beginning of the file NAME is not consistent, leave it blank. That way the new found JPG file will be matched to the INPUT FOLDER path.

Note monitoring files on a remote non-windows device is not always stable or fast. You really want to monitor files directly on a windows hard drive or windows shared folder if possible. Even NAS devices sometimes have issues.

162884 commented 3 years ago

Thanks, I will give that a try and see how it works.