Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cap >> frame; // get a new frame from camera


someimes, cameras need a 'warmup' time, and deliver empty frames.

throw in a :

if ( frame.empty() ) continue;

also, please run a 'debug' build. lots of serious assertions get skipped in release.

cap >> frame; // get a new frame from camera


someimes, sometimes, cameras need a 'warmup' time, and deliver empty frames.

throw in a :

if ( frame.empty() ) continue;

also, please run a 'debug' build. lots of serious assertions get skipped in release.