Fixing ChArUco board support on opencv >= 4.7.0 (#1331)

Fixed https://github.com/introlab/rtabmap_ros/issues/1200
This commit is contained in:
matlabbe
2024-08-25 19:35:19 -07:00
committed by GitHub
parent 6ce85b4e55
commit 4df207acc3
4 changed files with 32 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
include(CMakeFindDependencyMacro)
# Mandatory dependencies
find_dependency(OpenCV COMPONENTS core calib3d imgproc highgui stitching photo video OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d)
find_dependency(OpenCV COMPONENTS core calib3d imgproc highgui stitching photo video OPTIONAL_COMPONENTS aruco objdetect xfeatures2d nonfree gpu cudafeatures2d)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/RTABMap_guiTargets.cmake")
find_dependency(PCL 1.7 COMPONENTS common io kdtree search surface filters registration sample_consensus segmentation visualization)