HaarTraining cvSave exception
How can I change the path and permissions of cvSave in OpenCV?
I am doing a haartraining and after all stages are complete I receive an error:
OpenCV Error: Unspecified error (Could not open the file storage. Check the path and permissions) in cvSave, file /opt/local/var/macports/build/_opt_mports_dports_graphics_opencv/opencv/work/opencv-2.4.9/modules/core/src/persistence.cpp, line 5036
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /opt/local/var/macports/build/_opt_mports_dports_graphics_opencv/opencv/work/opencv-2.4.9/modules/core/src/persistence.cpp:5036: error: (-2) Could not open the file storage. Check the path and permissions in function cvSave
The issue seems to be with the path and permissions in the function cvSave, but I am unsure how to change these, or what is wrong with them. Any help fixing this is appreciated.
The issue might be related to this. When you are providing the haar-training command with a feature named "-data PATH" just make sure that the folder in which the xml file will be stored is created by you manually.