Are there any Pythonic solutions to reading and processing RAW images. Even if it's simply accessing a raw photo file (eg. cr2 or dng) and then outputting it as a jpeg.
Ideally a dcraw bindings for python, but anything else that can accomplish the came would be sufficient as well.
解决方案
A while ago I wrote a libraw/dcraw wrapper called rawpy. It is quite easy to use:
import rawpy
import imageio
raw = rawpy.imread('image.nef')
rgb = raw.postprocess()
imageio.imsave('default.tiff', rgb)
It works natively with numpy arrays and supports a lot of options, including direct access to the unprocessed Bayer data.