mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
add back in missing #ifdef
This commit is contained in:
parent
841fe088f6
commit
cbb7f31b48
@ -77,6 +77,7 @@ NAN_METHOD(BackgroundSubtractorWrap::New) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create MOG by default
|
// Create MOG by default
|
||||||
|
#if CV_MAJOR_VERSION >= 3
|
||||||
#ifdef HAVE_OPENCV_BGSEGM
|
#ifdef HAVE_OPENCV_BGSEGM
|
||||||
cv::Ptr<cv::BackgroundSubtractor> bg = cv::bgsegm::createBackgroundSubtractorMOG();
|
cv::Ptr<cv::BackgroundSubtractor> bg = cv::bgsegm::createBackgroundSubtractorMOG();
|
||||||
if (NULL == bg){
|
if (NULL == bg){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user