using the RPi and the V2 camera, I want to acquire the RAW image from the image sensor directly without extracting it from the JPG file. Extracting takes a very long time.
Code: Select all
tail -c -10270208 output.jpg > output.raw
The time taken will be totally dependent on the speed of the storage, but generally pretty minimal.
Or are you complaining that producing the file takes too long? There is a potential tweak for raspistill that would speed up the transfer from the GPU, but I couldn't say by how much.
bmw318 wrote:I think the sensor has to put into RAW mode by use of its serial commands, isn't it?
Is there somebody who knows how to do it?
The sensor is always producing Bayer as it has no processing block to convert from Bayer to YUV (that is normally done in the SoC).
If you really want to get down to just raw Bayer, then look at viewtopic.php?f=43&t=109137
, or there will soon be a V4L2 driver that can receive the data. (There's an upstream driver for OV5647, but not for IMX219 as yet). Exposure and gain control is then totally down to you.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.