diff --git a/samples/cpp/calibration.cpp b/samples/cpp/calibration.cpp index f8d71e70ff..e21b2ac5b1 100644 --- a/samples/cpp/calibration.cpp +++ b/samples/cpp/calibration.cpp @@ -127,7 +127,7 @@ void saveCameraParams( const string& filename, fs << "image_height" << imageSize.height; fs << "board_width" << boardSize.width; fs << "board_height" << boardSize.height; - fs << "squareSize" << squareSize; + fs << "square_size" << squareSize; if( flags & CV_CALIB_FIX_ASPECT_RATIO ) fs << "aspectRatio" << aspectRatio;