From 89a7ba9edce391a0e5b1737703fe5f837df03d24 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Fri, 15 Nov 2024 16:46:05 -0800 Subject: [PATCH] fix: use the old raw processor correctly --- fishsense_lite/commands/preprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fishsense_lite/commands/preprocess.py b/fishsense_lite/commands/preprocess.py index a418f05..0ae8704 100644 --- a/fishsense_lite/commands/preprocess.py +++ b/fishsense_lite/commands/preprocess.py @@ -30,12 +30,12 @@ def execute( return raw_processor_hist_eq = RawProcessor( - enable_histogram_equalization=not disable_histogram_equalization + input_file, enable_histogram_equalization=not disable_histogram_equalization ) image_rectifier = ImageRectifier(lens_calibration) try: - img = raw_processor_hist_eq.load_and_process(input_file) + img = next(raw_processor_hist_eq.__iter__()) except: return img = image_rectifier.rectify(img)