From 2fc6c0d9487e380d6cdb259f3766480e790b3cf5 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 2 May 2024 16:44:42 +0200 Subject: [PATCH] calibration --- calibrationCharuco.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/calibrationCharuco.cpp b/calibrationCharuco.cpp index 4b93eef..c6cdf76 100644 --- a/calibrationCharuco.cpp +++ b/calibrationCharuco.cpp @@ -45,6 +45,7 @@ the use of this software, even if advised of the possibility of such damage. #include #include "aruco_samples_utility.hpp" #include +#include using namespace std; using namespace cv; @@ -133,15 +134,17 @@ int main(int argc, char *argv[]) { cam.options->verbose=true; cam.startVideo(); - VideoCapture inputVideo; - int waitTime; - if(!video.empty()) { - inputVideo.open(video); - waitTime = 0; - } else { - inputVideo.open(camId); - waitTime = 10; - } + usleep(500'000); + + // VideoCapture inputVideo; + // int waitTime; + // if(!video.empty()) { + // inputVideo.open(video); + // waitTime = 0; + // } else { + // inputVideo.open(camId); + // waitTime = 10; + // } Ptr dictionary; if (parser.has("d")) {