Skip to content

Commit c955e03

Browse files
committed
Fix smart mask sluggishness limits
1 parent 6a3275f commit c955e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

motioneye/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def motion_camera_ui_to_dict(ui, prev_config=None):
939939

940940
if ui['mask']:
941941
if ui['mask_type'] == 'smart':
942-
data['smart_mask_speed'] = 10 - int(ui['smart_mask_sluggishness'])
942+
data['smart_mask_speed'] = 11 - int(ui['smart_mask_sluggishness'])
943943

944944
elif ui['mask_type'] == 'editable':
945945
capture_width, capture_height = data.get('width'), data.get('height')
@@ -1357,7 +1357,7 @@ def motion_camera_dict_to_ui(data):
13571357
elif data['smart_mask_speed']:
13581358
ui['mask'] = True
13591359
ui['mask_type'] = 'smart'
1360-
ui['smart_mask_sluggishness'] = 10 - data['smart_mask_speed']
1360+
ui['smart_mask_sluggishness'] = 11 - data['smart_mask_speed']
13611361

13621362
# working schedule
13631363
working_schedule = data['@working_schedule']

0 commit comments

Comments
 (0)