Ask Your Question
1

Logitech HD Pro Webcam C920

asked Jan 6 '13

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hi guys, I try capture with my nice new Logitech HD Pro Webcam C920. My problem is resolution I got. Both get and set methods work strange and return 0 for CV_CAP_PROP_FRAME_HEIGHT and huge number of 1081999360 for CV_CAP_PROP_FRAME_WIDTH. With read method I got resolution 640x480.

Can you give me any tip how to control resolution for this nice piece of modern art :)

I work with OpenCV 2.4.3, Windows Vista 32bit, with other applications everything works fine.

Preview: (hide)

Comments

What is your operating system? Does this camera correctly works with other software?

This is very weird. I use extensively the C920 and C930 with OpenCV in Debian and Windows 7 for Augmented Reality applications using either 848x480 or higher resolutions, without installing anything exceptional (default drivers or Logitech ones). Note that OpenCV 2.4.3 is VERY outdated. You should be using 2.4.9 or 2.4.10.

R.Saracchini gravatar imageR.Saracchini (Nov 21 '14)edit

2 answers

Sort by » oldest newest most voted
1

answered Nov 21 '14

almatrah gravatar image

Hi everybody

The method to make it work is first open device, then set resolution and then read stream.

VideoCapture capKamera1; capKamera1.open(1); capKamera1.set(CV_CAP_PROP_FRAME_WIDTH, 1920.); capKamera1.set(CV_CAP_PROP_FRAME_HEIGHT, 1080.); capKamera1.read(Mat myFrame);

Preview: (hide)
0

answered Aug 19 '13

NikolasE gravatar image

I have the same problem using Ubuntu 12.04 and OpenCV 2.4.6. Using guvcview, I can set the image size to up to 1920 x 1080 but I can only read VGA images in OpenCV.

The camera is opened as: cap = VideoCapture(dev_id); assert(cap.isOpened());

// returns 1
std::cout<< cap.set(CV_CAP_PROP_FOURCC,CV_FOURCC('M','J','P','G')) << std::endl;

// returns 0
std::cout<< cap.set(CV_CAP_PROP_FRAME_WIDTH, 1280)         << std::endl;
std::cout<< cap.set(CV_CAP_PROP_FRAME_HEIGHT, 720)       << std::endl;

Has anyone managed to get larger images in OpenCV?

Preview: (hide)

Comments

I think your problem has to be with an external video module in Ubuntu, sorry I can't remember which one but this was on a tread on this site so... In Windows, I get 1920x1080 with this camera without problem

Doombot gravatar imageDoombot (Nov 26 '14)edit

Question Tools

Stats

Asked: Jan 6 '13

Seen: 6,816 times

Last updated: Nov 21 '14