

Cameras at the resolution typically cost $50 to $100, and are best for most consumers. The next step up - and the most common resolution - are 1080p cameras like our favorite, the Logitech C920s. You'll be hard-pressed to find a webcam with a resolution of less than 720p most budget webcams, like the Logitech C310 and Logitech C270 (both of which cost less than $30) can stream at this resolution. When looking for the best webcam, you should consider a few key factors including resolution, framerate and price. Read our full Poly Studio P15 Personal Video Bar review. However, its very large size means it's not good for travel, and will have a hard time staying on top of some smaller laptops. In addition, the P15 has USB ports so you can charge other devices, as well as a privacy shutter when you don't want to be seen. This massive video bar is much larger than most other webcams, but with the increased size you get three beamforming mics that will pick up your voice much better, a 4K camera with a 90-degree field of view, and large speakers that will ensure you hear everything that's said on the other end. Probably CV_CAP_AVFOUNDATION = 1200 is what you are looking for - try to start you loop from 1200 and don't forget to remove break and I think that you will find what you are looking for.If your home office needs a near-professional-like web conferencing setup, the Poly Studio P15 could be your answer. Possibilities (taken from highgui_c.h): CV_CAP_ANY =0, // autodetectĬV_CAP_MIL =100, // MIL proprietary driversĬV_CAP_FIREWARE =300, // IEEE 1394 driversĬV_CAP_STEREO =400, // TYZX proprietary driversĬV_CAP_DSHOW =700, // DirectShow (via videoInput)ĬV_CAP_PVAPI =800, // PvAPI, Prosilica GigE SDKĬV_CAP_OPENNI =900, // OpenNI (for Kinect)ĬV_CAP_OPENNI_ASUS =910, // OpenNI (for Asus Xtion)ĬV_CAP_AVFOUNDATION = 1200 // AVFoundation framework for iOS (OS X Lion will have the same API) Add multiples of 100 to select an API (comment from cap.cpp).API that can access a given camera index.If given an index from 0 to 99, it tries to find the first.Note that parameter of cap.open is not only the number of camera - it also defines which API you want to use:Ĭamera dispatching method: index is the camera number. Probably you will find more than just one camera, and one of them will WebCam.

Try to run your code without this line: break.
