From c91f73fcbe9fd3cc6930c27531c3f134338328da Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Tue, 5 Aug 2014 20:47:13 +0300 Subject: [PATCH] increased default threshold a bit --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 25a6ca6..906fe0b 100644 --- a/src/config.py +++ b/src/config.py @@ -711,7 +711,7 @@ def camera_dict_to_ui(data): resolutions = v4l2ctl.list_resolutions(data['videodevice']) resolutions = [(str(w) + 'x' + str(h)) for (w, h) in resolutions] - threshold = data['threshold'] * 100 / (data['width'] * data['height']) + threshold = data['threshold'] * 100.0 / (data['width'] * data['height']) ui = { # device @@ -1166,7 +1166,7 @@ def _set_default_motion_camera(camera_id, data, old_motion): else: data.setdefault('locate_motion_mode', False) data.setdefault('locate_motion_style', 'redbox') - data.setdefault('threshold', 1500) + data.setdefault('threshold', 2000) data.setdefault('noise_tune', True) data.setdefault('noise_level', 32) data.setdefault('minimum_motion_frames', 1) -- 2.39.5