看完Wikipedia page原始图像格式,它是任何图像的数字底片。
To be viewed or printed, the output from a camera's image sensor has to be processed, that is, converted to a photographic rendering of the scene, and then stored in a standard raster graphics format such as JPEG. This processing, whether done in-camera or later in a raw-file converter, involves a number of operations, typically including
我使用 v4l2 example 从我的罗技 c920 中抓取了一些 .raw 文件但是当我显示图像时,它看起来像这样: 原始图像,在其他帧中我可以看到我的影子
有谁知道如何处理此类文件以查看完整的帧?
最佳答案
ffmpeg -f rawvideo -s 640x480 -pix_fmt yuyv422 -i frame-1.raw frame-1.jpg
选项是根据链接的 v4l2
代码设置的,生成的图像是您期望得到的图像。
关于c - 使用 ffmpeg 或 OpenCV 处理 .Raw 图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15031183/