# Compare two surveillance videos for two days and find different

**URL:** <https://forum.opencv.org/t/compare-two-surveillance-videos-for-two-days-and-find-different/529>\
**Category:** Uncategorized\
**Created:** [December 25, 2020, 1:05am UTC](https://forum.opencv.org/t/compare-two-surveillance-videos-for-two-days-and-find-different/529 "2020-12-25T01:05:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaolong\_li](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/xiaolong_li/32/325_2.png) [@xiaolong\_li](https://forum.opencv.org/u/xiaolong_li)\
**Post date:** [December 25, 2020, 1:05am UTC](https://forum.opencv.org/t/compare-two-surveillance-videos-for-two-days-and-find-different/529/1 "2020-12-25T01:05:59Z")

</div>

I want to compare two vedios for the same camera and find different, this two vedios are surveillance video for two days. give me some idea,thank you.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [December 25, 2020, 5:24am UTC](https://forum.opencv.org/t/compare-two-surveillance-videos-for-two-days-and-find-different/529/2 "2020-12-25T05:24:37Z")

</div>

welcome. please explain the approaches you have tried.

---

<div class="post-metadata">

**Author:** ![Gpc](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gpc](https://forum.opencv.org/u/Gpc)\
**Post date:** [December 26, 2020, 11:58am UTC](https://forum.opencv.org/t/compare-two-surveillance-videos-for-two-days-and-find-different/529/3 "2020-12-26T11:58:24Z")

</div>

Just make a frame by frame substraction , if more than 10% of the pixel are different for 10 consecutive frame, there is a difference.  
This method is very sensible to noise but it s a start
