Optionally include opencv geometry.hpp if it exists, adding support for opencv 5

This commit is contained in:
Zion Nimchuk 2026-07-06 08:54:06 -07:00
parent d87cf99b65
commit ee746e3a4a

View File

@ -7,6 +7,12 @@
#ifdef HAVE_OPENCV
#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
LOG_CHANNEL(ps_move);