diff --git a/arucoDetector.cpp b/arucoDetector.cpp index 4293a45..a6bbcde 100644 --- a/arucoDetector.cpp +++ b/arucoDetector.cpp @@ -100,6 +100,7 @@ int main(int argc, char *argv[]) for (const auto& [tags, matrix] : r.second) { if (tags.type == FLOWER) { + std::cout << tags.id << " " << tags.name << " " << matrix.first << " " << matrix.second << std::endl; //ArucoDetector::flowerDetector(tags, matrix.first, matrix.first, robotPose); } else if (tags.type == SOLAR_PANEL) diff --git a/calibrationCharuco.cpp b/calibrationCharuco.cpp index 02354ce..a0e85cb 100644 --- a/calibrationCharuco.cpp +++ b/calibrationCharuco.cpp @@ -164,7 +164,7 @@ int main(int argc, char *argv[]) { std::cout << "Rep Error: " << arucoRepErr << std::endl; - cv::FileStorage fs("calibration_results.yaml", cv::FileStorage::WRITE); + cv::FileStorage fs(outputFile, cv::FileStorage::WRITE); fs << "cameraMatrix" << cameraMatrix; fs << "distCoeffs" << distCoeffs; fs.release(); // Release the file