HaarTraining cvSave exception

asked 2014-07-28 09:43:19 -0600

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

berak gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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.

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-07-29 01:27:22 -0600 )edit