Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light Switch Detection is this feature works for anyone? #2596

Open
ghost opened this issue Feb 19, 2020 · 2 comments · Fixed by #2594
Open

Light Switch Detection is this feature works for anyone? #2596

ghost opened this issue Feb 19, 2020 · 2 comments · Fixed by #2594
Milestone

Comments

@ghost
Copy link

ghost commented Feb 19, 2020

Hello,

Since I had bunch of light change even motion turnon videos I tried this feature as it is advertised for exactly for the purpose to ignore these false positive videos.

Sadly this feature is not working at all for me. First of all the lowest value you can set after 0 (disabled) is 5% in which even if I walk in front of the camera it will not trigger any motion anymore so in the current state of things this feature is useless.

Please look into it.

@zagrim
Copy link
Collaborator

zagrim commented Sep 20, 2022

I've not seen this earlier, since I only follow motioeye project, but for me light switch detection has seemed to work. As the name says, it is meant "to avoid false detection when light conditions change and when a camera changes sensitivity at low light" (to quote the docs). I can't vouch if it has worked also in outside conditions when sun comes out behind the clouds or vice versa. Anyway, the point of it originally is to fence off overall lighting change over the most of the frame.
One could also use "Maximum Change Threshold" for the same purpose, it allows setting specific number of pixels in the frame as the limit.

But in theory you are right in the sense that at least according to the docs the both parameters seem to be about the same thing, one having a percentage value and the other having absolute value (which, I know, is not that easy to interpret), and should work the same.

@MichaIng MichaIng linked a pull request Sep 20, 2022 that will close this issue
@MichaIng MichaIng transferred this issue from motioneye-project/motioneyeos Sep 20, 2022
@MichaIng MichaIng added this to the v0.43.0 milestone Sep 20, 2022
@zagrim
Copy link
Collaborator

zagrim commented Sep 21, 2022

First of all the lowest value you can set after 0 (disabled) is 5% in which even if I walk in front of the camera it will not trigger any motion anymore so in the current state of things this feature is useless.

As @MichaIng pointed out in the PR that was linked, you've gotten the setting backwards. The value that is set is the maximum percentage of the frame that is allowed to suddenly change for motion event to be recorded. If it is set too low, you will not get any motion events because your normal motion might be over the limit lightswitch detection filters off.
So, you should not probably set it as low as 5%, please try higher values. You could work down from something like 50% until the light changes don't cause events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants