Tampering detection C++ code using BackgroundSubtractorMOG2