سلام
من با کتابخانه OpenCV 2.2 و Visual C++‎ 2010 از وبکم Logitech Quickcam 3000 خروجی می گیرم. ولی همیشه خروجی 320x200 هست !
با وبکم A4tech همین برنامه رزولوشن 640x480 میده ولی اینجا کار نمی کنه !
این کد من هست :

// Camera.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

#include <cxcore.h>
#include <highgui.h>
#include <cv.h>

using namespace cv;
using namespace std;

Rect FindBall()
{

}

int _tmain(int argc, _TCHAR* argv[])
{
//Initialize the first camera
VideoCapture camera(0);
//Wait for camera to be ready :D
waitKey(100);

Mat frame,hsv;
namedWindow("Camera");

while (1)
{
//Grab the current frame
camera >> frame;

//Check if the frame is empty
if (frame.empty())
continue;

camera.set(CV_CAP_PROP_FRAME_WIDTH,640);
camera.set(CV_CAP_PROP_FRAME_HEIGHT,480);


//Show the captured frame
imshow("Camera",frame);

//20 millisecond delay
waitKey(20);
}

return 0;
}



متشکرم