mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
clarify comment
This commit is contained in:
parent
eded4d172f
commit
a73760989c
@ -25,7 +25,7 @@ docker run --rm \
|
|||||||
-v <path_to_labelmap.pbtext>:/label_map.pbtext:ro \
|
-v <path_to_labelmap.pbtext>:/label_map.pbtext:ro \
|
||||||
-p 5000:5000 \
|
-p 5000:5000 \
|
||||||
-e RTSP_URL='<rtsp_url>' \
|
-e RTSP_URL='<rtsp_url>' \
|
||||||
-e REGIONS='<box_size_1>,<x_offset_1>,<y_offset_1>,<min_object_size_1>:<box_size_2>,<x_offset_2>,<y_offset_2>,<min_object_size_2>' \
|
-e REGIONS='<box_size_1>,<x_offset_1>,<y_offset_1>,<min_object_size_1>,<mask_file_1>:<box_size_2>,<x_offset_2>,<y_offset_2>,<min_object_size_2>,<mask_file_2>' \
|
||||||
-e MQTT_HOST='your.mqtthost.com' \
|
-e MQTT_HOST='your.mqtthost.com' \
|
||||||
-e MQTT_MOTION_TOPIC='cameras/1/motion' \
|
-e MQTT_MOTION_TOPIC='cameras/1/motion' \
|
||||||
-e MQTT_OBJECT_TOPIC='cameras/1/objects' \
|
-e MQTT_OBJECT_TOPIC='cameras/1/objects' \
|
||||||
|
@ -470,9 +470,9 @@ def detect_motion(shared_arr, shared_frame_time, frame_lock, frame_ready, motion
|
|||||||
avg_delta = frameDelta.copy().astype("float")
|
avg_delta = frameDelta.copy().astype("float")
|
||||||
|
|
||||||
# compute the average delta over the past few frames
|
# 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
|
# 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
|
# this also assumes that a person is in the same location across more than a single frame
|
||||||
cv2.accumulateWeighted(frameDelta, avg_delta, 0.2)
|
cv2.accumulateWeighted(frameDelta, avg_delta, 0.2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user