Is it possible to compare a real time video with an image?
Hi, I'm starting a project where I have a cam in real time and an image, and I want to do something (by the moment with a print() is enough) when I display the reference image at the webcam. Is there any function to do this? Or any tip?
PS: I'm using Python3 and OpenCV 4.2.0
Thanks to all!
what does "compare" mean to you, exactly ? do you want to find duplicates ? do you want to find the same object in the images ? please be more concise !
@berak To me "compare" in this case means to find differences between the reference image and the video of the camera or to find that the reference image and the video that is watching the cam is the same. Obviusly the cam would be always in the same place, with the same light conditions and same background of the reference image. Could I do this with absdiff for example or absdiff only works with images and not with video?
Thanks
When you have researched OpenCV, you should have noticed that video, for OpenCV, is nothing more than lots of still images that you read one by one from a source.
@mvuori So I should grab frame per frame and compare the last grabbed frame to the reference image? That's what I understand. Do you know any good tutorials? Thanks