This commit is contained in:
ackimixs
2024-04-16 14:04:54 +02:00
parent c8e6cb269c
commit 2836b5f84e

View File

@@ -64,7 +64,6 @@ void ArucoDetector::readCameraParameters(const std::string& path)
} else {
std::cerr << "Error reading calibration file." << std::endl;
}
std::cout << "Camera matrix: " << cameraMatrix << " " << this->distCoeffs << std::endl;
}
void ArucoDetector::addArucoTag(const ArucoTag& tag)
@@ -179,7 +178,7 @@ std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> Ar
cv::Mat rvec, tvec;
solvePnP(tag.objectRepresenation, markerCorners.at(i), cameraMatrix, distCoeffs, rvec, tvec, false, cv::SOLVEPNP_IPPE);
solvePnP(tag.objectRepresenation, markerCorners.at(i), cameraMatrix, distCoeffs, rvec, tvec, false);
if (!headless)
{