CV - Extract differences between two images
I am currently working on an intrusion system based on video surveillance. In order to complete this task, I take a snapshot of the background of my scene (assume it's totally clean, no people or moving objects). Then, I compare the frame I get from the (static) video camera and look for the differences. I have to be able to check any differences, not only human shape or whatever, so I cannot specific feature extraction. Typically, I have: I am using OpenCV, so to compare I basically do: cv::Mat bg_frame; cv::Mat cam_frame; cv::Mat motion; cv::absdiff(bg_frame, cam_frame, motion); cv: