C++ code using OpenCV function to detect tampering in still cameras