Optionally include opencv geometry.hpp if it exists, adding support for opencv 5
This commit is contained in:
@@ -7,6 +7,12 @@
|
|||||||
|
|
||||||
#ifdef HAVE_OPENCV
|
#ifdef HAVE_OPENCV
|
||||||
#include <opencv2/photo.hpp>
|
#include <opencv2/photo.hpp>
|
||||||
|
|
||||||
|
// OpenCV 5.x moved some functions to this header
|
||||||
|
#if __has_include(<opencv2/geometry.hpp>)
|
||||||
|
#include <opencv2/geometry.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LOG_CHANNEL(ps_move);
|
LOG_CHANNEL(ps_move);
|
||||||
|
|||||||
Reference in New Issue
Block a user