Ask Your Question

Revision history [back]

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.

click to hide/show revision 2
retagged

updated 2014-07-28 09:45:32 -0500

berak gravatar image

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.