Frames.time_diff(thres=2, abs=False)[source]#

Apply a difference over time (i.e. subtract frame 1 from frame 2, frame 2 from frame 3, etcetera. This method is very efficient to highlight moving objects when the video is very stable. If the video is very unstable this filter may lead to very bad results.

  • thres (float, optional) – obsolute value intensity threshold to set values to zero when intensity is lower than this threshold default: 2.

  • abs (boolean, optional) – if set to True (default: False) apply absolute value on result


da – filtered frames

Return type: