Use camera white balance

pull/1833/head
Piero Toffanin 2025-02-24 08:56:34 +00:00
rodzic a788cd3f73
commit 50add9bed5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ def read_image(img_path):
if img_path[-4:].lower() in [".dng", ".raw", ".nef"]:
try:
with rawpy.imread(img_path) as r:
img = r.postprocess(output_bps=8, use_auto_wb=True)
img = r.postprocess(output_bps=8, use_camera_wb=True, use_auto_wb=False)
except:
return None
else: