From a99bd2e69c67cd63496818d1fc2aa15f2f750033 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Nov 2026 02:17:23 +0100 Subject: [PATCH] fix: use cvt_color_def --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index dda202d..70560ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,11 +104,10 @@ fn frame_to_buffer( ) -> opencv::Result> { let mut rgb = Mat::default(); - imgproc::cvt_color( + imgproc::cvt_color_def( frame, &mut rgb, imgproc::COLOR_BGR2RGB, - 0, )?; // Ensure the bytes are contiguous.