Open janlammertyn opened 1 year ago
Probably somehow related to #2404. But the mask file is actually stored only when saving camera settings, AFAIK, so not sure how it can permanently change. It is definitely not related to a changing camera view width/height, e.g. due to changing browser window width or similar? Does it reset when you restart motionEye?
However, as of my findings in the linked link, the whole mask code needs a cleanup.
yeah i have the same problem. It seems to move down and to the right 1 unit when changing anything. if i had to guess, there is error either when saving or reading the mask. Motioneye 0.43.0 (dev) resolution of webcam 1920x1080
I tried to reproduce this with current dev branch with Motion v 4.5.1 by changing settings that don't affect the size or position of the video feeds (and thus I could easily check if the mask had moved), but couldn't get the mask to drift. It might of course be triggered by camera resolution (or aspect ratio), and mine produce different resolutions than @srmeister has, possibly they also differ from what @janlammertyn has.
I can replicate this issue if the Resolution Dimmer is not set to 100%. Here is an example with the Resolution Dimmer set to 80%:
before: After:
Resolution Dimmer 5%:
I also noticed the following in the log files when this happens, journalctl -u motioneye: DEBUG: building editable motion mask for camera with id 1 (819x614) DEBUG: editable mask needs resizing from 819x614 to 1024x768
I have a weird problem. The motion detection mask I use changes over time. It is like shifting downwards. For example, on the grid, I counted the number of masked blocks and open blocks in the first column. This is the result:
t0: 26 masked, 4 open, 12 masked t1: 27 masked, 4 open, 11 masked t2: 28 masked, 3 open, 11 masked t3: 30 masked, 3 open, 9 masked.
I did not edit the mask in between.
MotionEye v0.43.0 Motion v 4.5.1 OS Ubuntu 22.04