char key = waitKey(5);
if (key == ‘s‘ || key == ‘s‘)
{
for (int i = 0; i < CamNumber; i++)
{
char savePath[200];
sprintf_s(savePath, "../CalibConfig/config/images/%04d.jpg", i);
imwrite(savePath, undistortImg[i]);
cout << "success to write image in " << savePath << endl;
}
}
if (key == ‘q‘ || key == ‘Q‘)
break;
原文:https://www.cnblogs.com/kekeoutlook/p/13369852.html