Detect bad frames in OpenCV 2.4.9
问题 I know the title is a bit vague but I'm not sure how else to describe it. CentOS with ffmpeg + OpenCV 2.4.9. I'm working on a simple motion detection system which uses a stream from an IP camera (h264). Once in a while the stream hiccups and throws in a "bad frame" (see pic-bad.png link below). The problem is, these frames vary largely from the previous frames and causes a "motion" event to get triggered even though no actual motion occured. The pictures below will explain the problem. Good