Эх сурвалжийг харах

Update to OpenCV Version 4.4. formats

mothes 4 жил өмнө
parent
commit
565b4ce336

+ 1 - 0
core/ObjectData.h

@@ -10,6 +10,7 @@
 #include <unordered_map>
 #include <iostream>
 #include <opencv2/core/core.hpp>
+#include <opencv2/imgproc.hpp>
 #include <memory>
 
 namespace core

+ 2 - 2
util/Visualizer.cpp

@@ -63,7 +63,7 @@ namespace util
         }
 
         // Create window
-        cv::namedWindow(title, CV_WINDOW_AUTOSIZE);
+        cv::namedWindow(title, cv::WindowFlags::WINDOW_AUTOSIZE);
 
         // Display frames and data
         int target_delay = 1000 / play_fps;
@@ -153,4 +153,4 @@ namespace util
             }
         }
     }
-}
+}