feat: report OpenCV runtime settings for performance debugging

This commit is contained in:
2026-11-08 13:43:16 +01:00
parent 60dc3a76f7
commit ef4ae15abb
2 changed files with 40 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ struct PreviewFrame {
}
fn main() -> Result<(), Box<dyn Error>> {
if let Err(error) = diagnostics::log_runtime() {
eprintln!("Failed to read OpenCV runtime diagnostics: {error}");
}
let mut cam =
videoio::VideoCapture::new(0, videoio::CAP_V4L2).expect("Failed to get video capture");
let mut frame = Mat::default();