Browse Source

Update to OpenCV Version 4.4. formats

mothes 4 năm trước cách đây
mục cha
commit
565b4ce336
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      core/ObjectData.h
  2. 2 2
      util/Visualizer.cpp

+ 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
             }
         }
     }
-}
+}