Ask Your Question

Revision history [back]

Changing resolution of front LifeCam on MS Surface Pro

Hello OpenCV community!

I am trying to set HD resolution of the front facing camera on a MicroSoft Surface Pro 3, using OpenCV 3.0 x64 for VS2012, on WIn 8.1 OS. As in:

cv::VideoCapture INvidstream(CV_CAP_DSHOW | 1); dWidth = 1920 dHeight = 1080 INsidstream.set(CV_CAP_PROP_FRAME_WIDTH, dWidth); INvidstream.set(CV_CAP_PROP_FRAME_HEIGHT,dHeight);

with the rear camera (setting dev=0, instead of 1) OpenCV works, but the front facing camera (dev=1) it does not. The Native camera apps can set, display and record at various higher resolutions. Is this limitation of the built ffmpeg lib? From an earlier post, I found https://github.com/ofTheo/videoInput, as one possible native solution, but I was hoping to stick within the OpenCV/Qt framework, before spending time and energy going down roads already traveled.

thanks, t