I'm trying to access the pixel array of the video frame captured,
my code goes like this:
QCAR::Frame f = state.getFrame();
const QCAR::Image* image = f.getImage(1); // get the grayscale image
const char* data = (const char*) image->getPixels();
the line with the getPixels() crashes my program,
and I have absolutely no error messages,
could anyone please shed some light on this?