Skip to content

Commit fab4bb4

Browse files
authored
Merge pull request Smorodov#518 from Nuzhny007/master
Fix OpenCV 5.x compatibility
2 parents c16c343 + 8406cbc commit fab4bb4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/Detector/MotionDetector.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "MotionDetector.h"
2+
#if (CV_VERSION_MAJOR > 4)
3+
#include <opencv2/geometry.hpp>
4+
#endif
25

36
///
47
/// \brief MotionDetector::MotionDetector

src/Detector/tensorrt_onnx/YoloONNX.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include <map>
1717

1818
#include <opencv2/opencv.hpp>
19+
#if (CV_VERSION_MAJOR > 4)
20+
#include <opencv2/geometry.hpp>
21+
#endif
22+
1923
#include "class_detector.h"
2024

2125
//!

0 commit comments

Comments
 (0)