Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

OpenCV camera_calibration sample. No input found.

$
0
0
Hi, I'm trying to use the camera_calibration sample file of openCV. It compiles without errors, but for whatever reason the program is not working because the camera is not found. Input does not exist: Invalid Input detected. Application stopping. The code of the sample file that generates this error is: Settings s; const string inputSettingsFile = argc > 1 ? argv[1] : "default.xml"; FileStorage fs(inputSettingsFile, FileStorage::READ); // Read the settings if (!fs.isOpened()) { cout << "Could not open the configuration file: \"" << inputSettingsFile << "\"" << endl; return -1; } fs["Settings"] >> s; fs.release(); // close Settings file //! [file_read] //FileStorage fout("settings.yml", FileStorage::WRITE); // write config as YAML //fout << "Settings" << s; if (!s.goodInput) { cout << "Invalid input detected. Application stopping. " << endl; return -1; } The XML file looke like this: 7550"CHESSBOARD"1 The camera is found in all other programs. So the camera input is not the problem. What could cause this error?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>