From c1ad2d5425edecdfd241d2af395af57a3b6b53d8 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 2 Apr 2024 21:18:22 +0200 Subject: [PATCH] rotate the video --- aruco/ArucoDetector.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aruco/ArucoDetector.cpp b/aruco/ArucoDetector.cpp index 966976f..8f9a368 100644 --- a/aruco/ArucoDetector.cpp +++ b/aruco/ArucoDetector.cpp @@ -83,8 +83,11 @@ std::pair>>> Ar } cv::Mat frame; - cam->getVideoFrame(frame, 1000); + cv::Mat frameNotRotated; + cam->getVideoFrame(frameNotRotated, 1000); // cap >> frame; // Capture frame from the camera + // TODO rotate the frame 180 degrees + cv::flip(frameNotRotated, frame, -1); std::pair>>> result;