官方主页:https://pypi.org/project/rawpy/
加载一个raw图,并按默认参数保存。
import rawpy
import imageio
path = 'image.nef'
#path = 'image.raw'
with rawpy.imread(path) as raw:
rgb = raw.postprocess()
imageio.imsave('default.png', rgb)
更多的参数指导参考:https://letmaik.github.io/rawpy/api/
其他相关:
https://blog.csdn.net/weixin_41819299/article/details/82081557
https://blog.csdn.net/j_d_c/article/details/54019582