Opencv python and webcam

Posted by Neil Benn on Stack Overflow See other posts from Stack Overflow or by Neil Benn
Published on 2010-04-21T11:05:50Z Indexed on 2010/04/30 12:07 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

Hello,

I'm working with OpenCV on a beagleboard with ubuntu and OpenCV 1.1 interfaced via Python. I'm trying to set something up to capture a feed from a UVC compatible webcam (logitech C250). I have tested the webcam with luvcview and it works but only if I set the input format to YUV. If I run it in 'normal' mode I am getting back jpeg frames and something - somewhere is not happy!

I'm trying to connect with the webcam in OpenCV as I want to get the image back from the webcam and run some analysis on it. As I have a limited device this seems to be the most efficient way of doing it - however I need to instruct the capturing system to capture in YUV and not jpeg. Is there a way of doing this (for example luvcview allow me to enter luvcview -f YUVY)?

Cheers,

Neil

© Stack Overflow or respective owner

Related posts about opencv

Related posts about webcam