Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Createsamples.exe: Error Code -9

Hi there,

as I finished creating my info.txt file containg the absolute paths to the images and the rectangle information of my desired objects to be detected, I just ran

opencv_createsamples.exe -info C:\Software\training\file.txt -vec C:\Software\training\samples.vec -w 20 -h 20

Unfortunaley I get an error code -9, saying:

OpenCV Error: Unknown error code -9 () in cvSetImageROI, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\array.cpp, line 3021

Anyone knows what's that about? Further it says it's not able to open my image, which is in a .jpg format.

I'd be glad about some help. As always, the documentation of opencv doesn't give me any hint about what to do.

Createsamples.exe: Error Code -9

Hi there,

as I finished creating my info.txt file containg the absolute paths to the images and the rectangle information of my desired objects to be detected, I just ran

opencv_createsamples.exe -info C:\Software\training\file.txt -vec C:\Software\training\samples.vec -w 20 -h 20

Unfortunaley I get an error code -9, saying:

OpenCV Error: Unknown error code -9 () in cvSetImageROI, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\array.cpp, line 3021

Anyone knows what's that about? Further it says it's not able to open my image, which is in a .jpg format.format. The funny thing is, that the specified location (C:\build\master_winpack-build-win64-vc14....) doesn't even exist. Not even in the opencv-folder. So is this a mess by opencv (like bad handling of paths)?

I'd be glad about some help. As always, the documentation of opencv doesn't give me any hint about what to do.