feat: report OpenCV runtime settings for performance debugging
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user