kodukulav
Posts: 4
Joined: Tue Apr 24, 2018 4:58 pm

Reading RAW image from PiCamera v2

Sat Apr 28, 2018 8:16 am

Hi,

I read the documentation on PiCamera and I found a way to read the RAW image directly from the sensor, see below. II gave it a shot and the code works for me. However, 'm wondering whether this approach is reliable or not, i.e., whether the sensor throws a pure RAW image or not.

http://picamera.readthedocs.io/en/relea ... bayerarray

import picamera
import picamera.array

with picamera.PiCamera() as camera:
with picamera.array.PiBayerArray(camera) as output:
camera.capture(output, 'jpeg', bayer=True)
print(output.array.shape)

Thanks,
Venky

Return to “Camera board”