Ask Your Question

muzick4life7's profile - activity

2014-07-28 09:43:19 -0600 asked a question 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.