diff --git a/README.md b/README.md index 222beb22a..4179d869e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ docker run --rm \ -v :/label_map.pbtext:ro \ -p 5000:5000 \ -e RTSP_URL='' \ --e REGIONS=',,,:,,,' \ +-e REGIONS=',,,,:,,,,' \ -e MQTT_HOST='your.mqtthost.com' \ -e MQTT_MOTION_TOPIC='cameras/1/motion' \ -e MQTT_OBJECT_TOPIC='cameras/1/objects' \ diff --git a/detect_objects.py b/detect_objects.py index 499884890..d61b665a2 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -470,9 +470,9 @@ def detect_motion(shared_arr, shared_frame_time, frame_lock, frame_ready, motion avg_delta = frameDelta.copy().astype("float") # compute the average delta over the past few frames - # the alpha value can be modified to configure how sensitive the motion detection is + # the alpha value can be modified to configure how sensitive the motion detection is. # higher values mean the current frame impacts the delta a lot, and a single raindrop may - # put it over the edge, too low and a fast moving person wont be detected as motion + # register as motion, too low and a fast moving person wont be detected as motion # this also assumes that a person is in the same location across more than a single frame cv2.accumulateWeighted(frameDelta, avg_delta, 0.2)