macro_rules! opencv_branch_5 {
($bl_pos:block else $bl_neg:block) => { ... };
($($tt:tt)*) => { ... };
}Expand description
Conditional compilation macro based on OpenCV branch version for usage in external crates.
ยงExamples
Alternative import:
opencv::not_opencv_branch_34! {
use opencv::imgproc::LINE_8;
}
opencv::opencv_branch_34! {
use opencv::core::LINE_8;
}Alternative function call:
let mut cam = opencv::opencv_branch_34! {
{
opencv::videoio::VideoCapture::new_default(0)?
} else {
opencv::videoio::VideoCapture::new(0, videoio::CAP_ANY)?
}
};