使用的ffmpeg或OpenCV的处理.RAW图像 [英] Processing .Raw images using ffmpeg or OpenCV

查看:2061
本文介绍了使用的ffmpeg或OpenCV的处理.RAW图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在阅读 RAW图像格式的维基百科页面这是任何图像的数字负片。


  

要查看或打印,从相机图像传感器的输出具有
  进行处理,即,转换成的照相渲染
  场景,然后存储在一个标准光栅图形格式如
  JPEG。该处理中,是否进行在相机或稍后在一个原始文件
  转换器,涉及多项业务,通常包括


我有些.RAW文件从我的罗技C920使用 V4L2例如抓起但是当我展示它看起来像这样的形象:
RAW图像,其中在其它帧我可以看到我的影子

有谁知道如何处理这样的文件,查看完整的帧?

这里是原来的.raw文件


解决方案

 的ffmpeg -f -s rawvideo 640×480 -pix_fmt yuyv422 -i帧1.raw帧1.JPG

选项分别设置根据 V4L2 code相连,且产生的图像是你所期望得到的。

After reading Wikipedia page of Raw image format which is the digital negative of any image.

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

I have some .raw files grabbed from my Logitech c920 using v4l2 example but when I display the image it looks like this: a raw image where in other frames I can see my shadow

Does anyone knows how to process such files to see the complete frame ?

Here is a link to the original .raw file

解决方案

ffmpeg -f rawvideo -s 640x480 -pix_fmt yuyv422 -i frame-1.raw frame-1.jpg

The options were set based on the v4l2 code linked, and the resulting image is the one you would expect to get.

这篇关于使用的ffmpeg或OpenCV的处理.RAW图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆