Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes. Just use the VideoCapture class. The first device is normally the webcam. Docs here: http://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture

In the samples you can find some code that does face recognition in real time: http://docs.opencv.org/2.4/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html?highlight=face