Ask Your Question
1

Logitech HD Pro Webcam C920

asked 2013-01-06 09:47:02 -0600

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.

edit retag flag offensive close merge delete

Comments

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

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-01-06 11:17:46 -0600 )edit

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 ( 2014-11-21 16:06:42 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-11-21 12:35:25 -0600

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);

edit flag offensive delete link more
0

answered 2013-08-19 07:31:56 -0600

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?

edit flag offensive delete link more

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 ( 2014-11-26 09:16:56 -0600 )edit

Question Tools

Stats

Asked: 2013-01-06 09:47:02 -0600

Seen: 5,909 times

Last updated: Nov 21 '14