Createsamples can't open images

asked 2015-12-10 04:02:49 -0600

table234 gravatar image

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.

edit retag flag offensive close merge delete

Comments

-9 is: HeaderIsNull= -9, //!< image header is NULL , so either file not found, or it does not like tiff (bad choice anyway)

berak gravatar imageberak ( 2015-12-10 04:18:22 -0600 )edit