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.