Ask Your Question

Revision history [back]

In OpenCV 1.X, it is not allowed to modify the returned image buffer from capture. According to the doc, it seems not relevant with OpenCV 2.X, but usually, I made deep copy of images returned by VideoCapture object, did you try to copy this images (frame 1&2)? Maybe they return 0 because, the pointers are pointing to the same (internal) image? Try it and let us know.

In OpenCV 1.X, it is not allowed to modify the returned image buffer from capture. According to the doc, it seems not relevant with OpenCV 2.X, but usually, I made deep copy of images returned by VideoCapture object, did you try to copy this these images (frame 1&2)? Maybe they return 0 because, the pointers are pointing to the same (internal) image? Try it and let us know.