mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-18 16:47:33 +01:00
calibration
This commit is contained in:
@@ -58,8 +58,8 @@ void ArucoDetector::readCameraParameters(const std::string& path)
|
||||
{
|
||||
cv::FileStorage fs(path, cv::FileStorage::READ);
|
||||
if (fs.isOpened()) {
|
||||
fs["cameraMatrix"] >> this->cameraMatrix;
|
||||
fs["distCoeffs"] >> this->distCoeffs;
|
||||
fs["camera_matrix"] >> this->cameraMatrix;
|
||||
fs["distortion_coefficients"] >> this->distCoeffs;
|
||||
fs.release();
|
||||
} else {
|
||||
std::cerr << "Error reading calibration file." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user