Current version: 5.1.1, released July 12, 2020.
A few weeks ago I came across
The Hook Up's video on how to use gentlepumkin's now
famous thread to set up AI motion detection with
BlueIris. This sent me down the path of building a new PC, buying BlueIris, migrating all my IP cameras from Synology Surveillance Station, and getting the AI Tool up and running.
While I eventually did get everything working and saw the potential I wanted something that could run as a Docker container. I also missed not having MQTT notifications as part of the system. I know it's possible to set up BlueIris to do the MQTT sending but I wanted the messages earlier in the flow so I could use Home Assistant + NodeRed to decide when it was appropriate to turn on high-resolution recording (e.g. if I'm outside enjoying my deck I don't need the HD feed constantly triggering).
I'm happy to release node-deepstackai-trigger, a Docker image that offers:
- AI detection using DeepStack.ai (inspired by gentlepumpkin's idea and initial implementation)
- Initial configuration and installation with just two files
- Mask regions to block sections of the image that are prone to false positives
- Support for web requests to trigger BlueIris camera recording
- Support for sending MQTT messages, including motion end events for nice integration with Home Assistant MQTT binary sensors
- Support for sending Pushbullet, Pushover and Telegram messages
- REST API for activating a trigger from an external system and retrieving statistics
- MQTT topics for activating a trigger from an external system and retrieving statistics
From the start I worked hard to make installation and configuration as quick as possible. If you already have your BlueIris cameras configured for the AI Tool solution then you just need to copy two files locally to your machine, define your triggers in the configuration file, then run
docker-compose up
. There's no need to independently install or configure Deepstack.ai: it's all taken care of for you. (If you already have Deepstack.ai running as a container you'll want to stop it to save CPU time. No need to have two copies running!)
Interested in taking it for a spin? Quick start instructions are available in the
readme. Complete instructions are on the
project wiki, including a complete write-up of the
different configuration options and
detailed steps for setting up cameras in BlueIris if you haven't done so already.
Hope you find this useful!
P.S. If you're the type that likes to hack at code the project is designed to get up and running for development in less than five minutes. See the
contributing guide for the magic. Happy hacking!