Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Automatic snapshot from webcam with OpenCV C++

Hi everyone , I am new to OpenCV. I found here so many topics that helped me to get started with opencv.

With your help i finally managed to run my first program with opencv c++ using visual studio 2012 " open a webcam and take a shot when pressing a button " .

My webcam is " Logitech c920 " it is fixed on the monitor .

I want to approach an image with fixed size "800*600" printed on A4 paper to the webcam, when it reach a certain distance "lets say 4 inch" i want the webcam to automatically take a shot, when the distance is far from "4 inch for example" it did nothing !

To be specific, how to know the distance between a fixed webcam and an image printed on a paper as i move back and forward from the webcam ! thank you

Cheers