Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to define the width and height in capture properties of capture. I presume that you are using the C interface, right? If you don't want to use the C++ interface (the previous answer is for C++ way, take a look on the doc for C interface here.

Try with cvSetCaptureProperty(yourvideo,CV_CAP_PROP_FRAME_HEIGHT, 1024). Same thing for the width, using CV_CAP_PROP_FRAME_WIDTH.

You need to define the width and height in capture properties of capture. I presume that you are using the C interface, right? If you don't want to use the C++ interface (the previous answer is for C++ way, way), take a look on the doc for C interface here.

Try with cvSetCaptureProperty(yourvideo,CV_CAP_PROP_FRAME_HEIGHT, 1024). Same thing for the width, using CV_CAP_PROP_FRAME_WIDTH.