First time here? Check out the FAQ!
answered 2018-01-15 04:26:00 -0600
Apply the findNonZero function to your foreground mask, then see if at least 10% of your image content is changing (since you want to ignore noise), and trigger the alarm.
findNonZero