Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Createsamples can't open images

Hello everyone. I'm trying to run createsamples to make a Face Detection on Command Prompt as below command.

C:\EX9>opencv_createsamples.exe -vec Front_8595.vec -num 8595 -info Front_OK.txt -w 48 -h 48 -mode ALL

However, createsamples can't run and output a below error message.

Unable to open image: POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif OpenCV Error: Unknown error code -9 () in unknown function, file ......\src\cxcore\cxarray.cpp, line 2994

"POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif" is a relative filepath to a sample image I ran createsamples with another image-set on same setting and it's succeed. I tried converting tif to jpg and renaming short filename but I can't run createsamples.

I use the text to get filepaths and ranges of faces as below. POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif 1 141 288 217 288

Please give an advice.