I noticed an issue where there’s artifacts in my frame which is then causing my frame differencing to think that there’s a change.
A short description of my program:
I use frame differencing to detect when an object comes in. I count 30 frames with an object before sending the latest frame to my CNN. After checking the frame to the network, I update the background by replacing it with a new sensor.snapshot().
What I noticed is that the artifacts come in after running the CNN at least once. Please see attached image for an idea of what I’m seeing. I have a video but it is too big to attached.
If I run my code without the CNN then the background updates and I don’t see the artifacts at the bottom of my frame differencing.
This problem is stopping me from detecting new objects after detecting my first object because the frame differencing is constantly recognizing a difference now.
I was wondering if you have any suggestions on what I can do to either reset the camera to the state it was before the CNN or what I can do to not get the artifacts.