From 5e5c9ea34c3d17ff61a7012bfdf2353327e2a314 Mon Sep 17 00:00:00 2001 From: Diego Freitas Date: Mon, 13 Apr 2026 13:12:25 -0300 Subject: [PATCH] ajuste no capture raw --- Python/OAK/datasets/_0_capture_raw.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Python/OAK/datasets/_0_capture_raw.py b/Python/OAK/datasets/_0_capture_raw.py index f94eaaaf3..26c4f02bf 100644 --- a/Python/OAK/datasets/_0_capture_raw.py +++ b/Python/OAK/datasets/_0_capture_raw.py @@ -96,7 +96,7 @@ def save_sample_raw4( ): """ Salva: - - RAW4 como .npy float32 (4,H,W) + - RAW4 como .raw float32 (4,H,W) - preview RGB como .png - metadados como .json dentro de base_dir. @@ -257,7 +257,7 @@ def main(): }, "note": "autosave", } - rgb_clean_bgr_save = make_bgr_preview_from_raw(raw4_base, rgirb=True, preview_fast=False) + rgb_clean_bgr_save = make_bgr_preview_from_raw(raw4_base, rgirb=True, preview_fast=False, apply_ir_comp=apply_ir_comp, ir_k_r=ir_k_r, ir_k_g=ir_k_g, ir_k_b=ir_k_b) raw_path, _, _ = save_sample_raw4(session_dir, raw4_base, rgb_clean_bgr_save, meta) last_msg = f"SALVO (auto): {os.path.basename(raw_path)}" last_msg_t = now @@ -295,6 +295,10 @@ def main(): "exp_raw": int(exp_raw) if exp_raw is not None else None, "gain_a": int(gain_a) if gain_a is not None else None, "gain_d": int(gain_d) if gain_d is not None else None, + "apply_ir_comp": apply_ir_comp, + "ir_k_r": ir_k_r, + "ir_k_g": ir_k_g, + "ir_k_b": ir_k_b, "ae_dbg": { k2: (float(v2) if isinstance(v2, (int, float, np.floating)) else v2) for k2, v2 in ae_dbg.items()