How do I take a single frame picture using my webcam?

Hi,

how do I take a single frame picture using my webcam?

additional info;
im using my onboard camera on a mac. the ofVideoGrabberExample works and so the hardware is fine . I just want a single snap-shot to be triggered by a keypress. I’ve tried the advice in the following thread, but I couldn’t get it to build. ofVideoGrabber Capturing snapshots from webcam

thanks in advance

the syntax has changed a little from that example but using simply:

camtex.loadData(cam1.getPixels());

should work

it does. thanks

main.cpp (344 Bytes)
ofApp.cpp (3.5 KB)
ofApp.h (981 Bytes)