Ask Your Question
0

How to compare a captured video with a ref video using OpenCV Python?

asked 2015-02-24 00:09:25 -0600

Mridula_M gravatar image

I need to compare 2 videos and check whether they are the same. I have a ref video to which the captured video has to be compared. How can I do this using OpenCV , numpy and matplotlib?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-24 01:47:37 -0600

updated 2015-02-24 01:47:58 -0600

What do you count as "the same"? Pixelwise equality? In this case cv::sum(cv::absdiff(current_image,reference_image)) == 0 is the test you want to run. (Or something faster that fails faster if the images are not the same)

edit flag offensive delete link more

Comments

Actually my aim is to find whether a video has any artifacts. So I have a ref video which has no artifacts and I'm comparing the captured video with the ref video. Is there an option to do so in python Opencv?

Mridula_M gravatar imageMridula_M ( 2015-02-25 02:48:14 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-24 00:09:25 -0600

Seen: 1,127 times

Last updated: Feb 24 '15