It depends on the webcam, it can be in RGB, BGR, YUV and various others, even JPEG. You might be better looking for a CCD module that you can interface to your micro rather then a USB solution as you will need to engineer a compatible USB driver as there is no standard for webcams like there is for storage devices (mass storage device).
Or probably even better: http://www.sparkfun.com/products/8668 (i2c for control, 8bit parallel for data and supports RGB, YUV and JPEG compressed formats)
发布评论
评论(2)
这取决于网络摄像头,它可以是 RGB、BGR、YUV 和其他各种格式,甚至是 JPEG。您可能最好寻找可以连接到微型计算机的 CCD 模块,而不是 USB 解决方案,因为您需要设计兼容的 USB 驱动程序,因为网络摄像头没有像存储设备(大容量存储设备)那样的标准。
像这样的东西: http://www.jrobot.net/Projects/AVRcam.html
或者可能更好: http://www.sparkfun.com/products/8668 (i2c用于控制,8位并行用于数据并支持RGB、YUV和JPEG压缩格式)
It depends on the webcam, it can be in RGB, BGR, YUV and various others, even JPEG. You might be better looking for a CCD module that you can interface to your micro rather then a USB solution as you will need to engineer a compatible USB driver as there is no standard for webcams like there is for storage devices (mass storage device).
Something like this: http://www.jrobot.net/Projects/AVRcam.html
Or probably even better: http://www.sparkfun.com/products/8668 (i2c for control, 8bit parallel for data and supports RGB, YUV and JPEG compressed formats)
确实取决于相机。但大多数传感器以 YUV(或 YCbCr)及其变体输出
Depends on the camera, really. But most sensors output in YUV (or YCbCr) and it's variants