diff --git a/CMakeLists.txt b/CMakeLists.txt index f877f43..180f9e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 2.8) project(detect) ## dependencies +find_package( OpenCV REQUIRED ) +include_directories( ${OpenCV_INCLUDE_DIRS} ) include_directories(/usr/include/eigen3) @@ -28,4 +30,4 @@ install(TARGETS visiona DESTINATION lib) install(FILES include/Visiona.h DESTINATION include) install(FILES include/DebugPlotConfig.h DESTINATION include) -install(FILES include/MarkerDetectorConfig.h DESTINATION include) \ No newline at end of file +install(FILES include/MarkerDetectorConfig.h DESTINATION include) diff --git a/include/DebugPlotConfig.h b/include/DebugPlotConfig.h index 0a54533..401a253 100644 --- a/include/DebugPlotConfig.h +++ b/include/DebugPlotConfig.h @@ -38,6 +38,7 @@ #ifndef DEBUGPLOTCONFIG_H_ #define DEBUGPLOTCONFIG_H_ +#include #include #include diff --git a/include/MarkerDetectorConfig.h b/include/MarkerDetectorConfig.h index a7e987a..5a906d3 100644 --- a/include/MarkerDetectorConfig.h +++ b/include/MarkerDetectorConfig.h @@ -38,7 +38,8 @@ #ifndef MARKERDETECTORCONFIG_H_ #define MARKERDETECTORCONFIG_H_ -#include +#include +#include #include namespace visiona { diff --git a/src/MarkerDetector_impl.cpp b/src/MarkerDetector_impl.cpp index 6219eed..c7c8770 100644 --- a/src/MarkerDetector_impl.cpp +++ b/src/MarkerDetector_impl.cpp @@ -1314,7 +1314,7 @@ void MarkerDetector_impl::buildCircleHolesImage(const EllipsePoly& elps, } ofstream f(fname); - f << cv::format(img, "csv") << std::endl; + f << cv::format(img, Formatter::FMT_CSV) << std::endl; f.close(); }