Macro opencv::not_opencv_branch_4
source · macro_rules! not_opencv_branch_4 { ($($tt:tt)*) => { ... }; }
Expand description
Conditional compilation macro based on OpenCV branch version for usage in external crates.
Examples
Alternative import:
opencv::opencv_branch_4! {
use opencv::imgproc::LINE_8;
}
opencv::not_opencv_branch_4! {
use opencv::core::LINE_8;
}
Alternative function call:
opencv::opencv_branch_32! {
let mut cam = opencv::videoio::VideoCapture::new_default(0)?;
}
opencv::not_opencv_branch_32! {
let mut cam = opencv::videoio::VideoCapture::new(0, videoio::CAP_ANY)?;
}