Ask Your Question
1

Max camera resolution for opencv?

asked 2013-05-06 03:59:15 -0600

MattiasR gravatar image

updated 2013-05-07 08:00:08 -0600

My 640x480px camera is not enough and I need to increase the resolution. I'm planning to buy the Microsoft Lifecam Studio (1920x1080) but can I use the maximum resolution on the cam together with opencv? Is there any limit for the "videoDevice >>" when capturing frames from the webcam?

As soon as the frame is grabbed the system will only use the ROI, so my question is mostly about the frame grabbing. Can opencv grab frames that big?

edit:

(real time, >10fps)

Computer: win7, 64bit, mem:3GB, usb2

edit 2: extra question

I've searched google about web cam with ROI, but I guess that ROI is a term used only when talking about opencv, because i Couldnt find anything.

Is there anyone that knows which cameras there is that has some kind of ROI - function built into the hardware so that the amount of data to grab is less for the software?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
4

answered 2013-05-07 03:34:30 -0600

updated 2013-05-07 08:05:37 -0600

The grabbing is not limited in size. Basically you just read in the complete data stream bit by bit. Just keep in mind that the larger the resolution, the larger the actual frame transfer will be and the lower your frames per second will get.

If you are planning to immediatly use a region of interest on the captured frame, try looking at your device specification. Most camera's support a built in region of interest functionality, which reduces the amount of data needed to be transfered to the camera.

Also keep in mind, when visualizing these larger frames, as long as the windows is smaller than your screen resolution, everything goes fine. Larger frames will get displayed, but the moment you call mouseactions on that windows, coördinates will get screwed up. Solution here would be to split your frame and display each part sequentially.


EDIT: answer on your second edit question:

You are looking on the wrong term. Basically you want a USB camera wich has an API and development kit connected to it. By using the API you can adapt the camera's properties from software.

Most camera's use something like offset combined with width and heigth to define a region of interest. Also binning (which is in fact skipping pixels) is possible here.

I am using a more expensive camera for my projects over here, from AVT. We got the manta and the guppy camera, which both have an API to select regions of interest.

However, most of these cams are firewire or GigE versions.

edit flag offensive delete link more

Comments

1

Thank you for your answer. I did actually go to this page to ask a question about the built in ROI for webcams. But I put that into another thread. Thanks!

MattiasR gravatar imageMattiasR ( 2013-05-07 07:30:49 -0600 )edit
1

Thanks Steven!

MattiasR gravatar imageMattiasR ( 2013-05-07 08:18:02 -0600 )edit

Question Tools

Stats

Asked: 2013-05-06 03:59:15 -0600

Seen: 4,978 times

Last updated: May 07 '13