Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

[Opencv4] Settings.write not working Incorrect element name {; should start with a letter or '_' in function 'operator

$
0
0
I am just trying to perform chessboard camera calibration based on [camera calibration](https://github.com/opencv/opencv/blob/master/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp) sample. So I am trying to let my QT app save the calibrations settings using Settings class as defined int above code. There is a function for this which is Settings.write but when I call as below it gives me this error: void saveCalibrationSettings(const Settings currentSettings){ FileStorage fs = FileStorage(Ui::calibrationFilename, FileStorage::WRITE); currentSettings.write(fs); fs.release(); } the error is as below: Gtk-Message: 02:56:21.529: Failed to load module "canberra-gtk-module" Input does not exist: images/CameraCalibration/VID5/VID5.xmlterminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.1) /home/mike/opencv-4.0.1/modules/core/src/persistence.cpp:1995: error: (-2:Unspecified error) Incorrect element name {; should start with a letter or '_' in function 'operator<<' I just need my QT GUI application to be able to save a Settings object into a file so that it could follow the correct calibration settings format which then can be fed to the calibration process.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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