From: Calin Crisan Date: Tue, 5 Aug 2014 17:47:13 +0000 (+0300) Subject: increased default threshold a bit X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=c91f73fcbe9fd3cc6930c27531c3f134338328da;p=motioneye-debian increased default threshold a bit --- 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)