From 1a55008cd57e03472d1cd55b085e51d31190913b Mon Sep 17 00:00:00 2001 From: blakeblackshear Date: Tue, 5 Mar 2019 21:42:09 -0600 Subject: [PATCH] update readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index ecb52c1c4..05a1404c6 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Run the container with docker run --rm \ -v :/frozen_inference_graph.pb:ro \ -v :/label_map.pbtext:ro \ +-v :/config:ro \ -p 5000:5000 \ -e RTSP_URL='' \ -e REGIONS=',,,,,:,,,,,' \ @@ -60,6 +61,19 @@ Example docker-compose: DEBUG: "0" ``` +Here is an example `REGIONS` env variable: +`350,0,300,5000,200,mask-0-300.bmp:400,350,250,2000,200,mask-350-250.bmp:400,750,250,2000,200,mask-750-250.bmp` + +First region broken down (all are required): +- `350` - size of the square (350px by 350px) +- `0` - x coordinate of upper left corner (top left of image is 0,0) +- `300` - y coordinate of upper left corner (top left of image is 0,0) +- `5000` - minimum person bounding box size (width*height for bounding box of identified person) +- `200` - minimum number of changed pixels to trigger motion +- `mask-0-300.bmp` - a bmp file with the masked regions as pure black, must be the same size as the region + +Mask files go in the `/config` directory. + Access the mjpeg stream at http://localhost:5000 ## Integration with HomeAssistant @@ -102,6 +116,7 @@ sensor: - [ ] Try and reduce CPU usage by simplifying the tensorflow model to just include the objects we care about - [ ] Look into GPU accelerated decoding of RTSP stream - [ ] Send video over a socket and use JSMPEG +- [ ] Look into neural compute stick ## Building Tensorflow from source for CPU optimizations https://www.tensorflow.org/install/source#docker_linux_builds