fix: use cvt_color_def

This commit is contained in:
2026-11-08 02:17:23 +01:00
parent 13698336dd
commit a99bd2e69c

View File

@@ -104,11 +104,10 @@ fn frame_to_buffer(
) -> opencv::Result<SharedPixelBuffer<Rgb8Pixel>> {
let mut rgb = Mat::default();
imgproc::cvt_color(
imgproc::cvt_color_def(
frame,
&mut rgb,
imgproc::COLOR_BGR2RGB,
0,
)?;
// Ensure the bytes are contiguous.