What are some approaches to do this? Can we use OpenCV to do that? Any ideas?
The scene is static. Somewhere I saw a user trains the app with multiple images of normal scenes, and the app monitors the amount of pixel change from the trained images. And it issues an alarm when the amount of pixel change exceeds a threshold for a specified time period. But it shouldsn’t be that simple. A human may walk around or shadows and sunlight shouldn’t be a scene change and thus, will not be an anomaly.
@t.jasmin111 these two posts are not addressed to you or your question.
@berak I’ve dealt with the issue. the system flagged several of that user’s posts, which frequently contained youtube links and links to the same thread on some other forum. this post here may be useful (i’ve restored it) but the general contributions were a chore to read.
yes, background subtraction can help, but that class of algorithms only detects changes. there are no semantics in background subtraction. lighting changes are a big issue for background subtraction.
you could train background subtraction once, then freeze it.
you’d collect training data, i.e. a varied set of pictures (different lighting), not just one video where adjacent frames mostly look the same.
when the bgsub (even the naive ones in opencv) was “trained” on this, you’d set the training rate to zero.
I don’t think it’s that simple. I need bounding boxes of changed object. Plus, lighting changes and humans walking shouldn’t be captured. So some temporal processing as well.
Ok. But do we have any pre-trained models for that? Altenratively, are there any general object detection model that can detect ANY objects? I can use it to understand what object is missing/added later.
I saw a camera detecting door blockage. Basically if the exit door is blocked by an object, it detects it as an anomaly. How can we do it? Is it possible to do it using OpenCV?
Remember, it doesn’t catch light or shadow changes, so it understands object blockage.
Of course, I’m not going to detect only this door! Any door of any colors/shapes. But most likely just one door. I can take a few initial images of the scene to setup the detections, if needed