From af9a16486610f341c33d013ce3d2c98ec2986c7c Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 2 May 2024 16:53:24 +0200 Subject: [PATCH] calibration --- calibrationCharuco.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/calibrationCharuco.cpp b/calibrationCharuco.cpp index 1934990..db97f62 100644 --- a/calibrationCharuco.cpp +++ b/calibrationCharuco.cpp @@ -153,43 +153,25 @@ int main(int argc, char *argv[]) { dictionary = aruco::getPredefinedDictionary(aruco::PREDEFINED_DICTIONARY_NAME(dictionaryId)); } - std::cout << "isok" << std::endl; - - /*else if (parser.has("cd")) { - FileStorage fs(parser.get("cd"), FileStorage::READ); - bool readOk = aruco::Dictionary::readDictionary(fs.root(), dictionary); - if(!readOk) { - cerr << "Invalid dictionary file" << endl; - return 0; - } - }*/ - /*else { - cerr << "Dictionary not specified" << endl; - return 0; - }*/ - // create charuco board object Ptr charucoboard = aruco::CharucoBoard::create(squaresX, squaresY, squareLength, markerLength, dictionary); Ptr board = charucoboard.staticCast(); - std::cout << "isok" << std::endl; - // collect data from each frame vector< vector< vector< Point2f > > > allCorners; vector< vector< int > > allIds; vector< Mat > allImgs; Size imgSize; - std::cout << "isok" << std::endl; - cv::namedWindow("Video",cv::WINDOW_NORMAL); char key = 0; while(key != 27) { - Mat image, imageCopy; - cam.getVideoFrame(image,1000); + Mat imageF, imageCopy, image; + cam.getVideoFrame(imageF,1000); + flip(imageF, image, -1); std::cout << "isok" << std::endl;