I'm making a raw capture tool for raspberry pi and the official HQ camera. I can't seem to get RAW DNG or TIFF images, whatever I do. Here's my current code:
from picamera import PiCamera
print('Import successful!')
print("Capturing!")
with PiCamera() as cam:
cam.capture("out.nef", format="raw", bayer="true")
print('Converting...')
import rawpy
import imageio
path = 'out.nef'
with rawpy.imread(path) as raw:
rgb = raw.postprocess()
imageio.imsave('default.tiff', rgb)
I tried PiDNG, but it seems to have lost support for the legacy camera stack. Please help!