rotate the video

This commit is contained in:
ackimixs
2024-04-02 21:18:22 +02:00
parent ab38c13c05
commit c1ad2d5425

View File

@@ -83,8 +83,11 @@ std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> 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<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> result;