Traincascade Train dataset for temp stage can not be filled

asked 2019-07-18 19:25:25 -0600

Rafis gravatar image

Traincascade is always returning Train dataset for temp stage can not be filled. I am running the following command to run opencv_traincascade.exe starting command prompt at cd Desktop.

Command Prompt Command

C:\Users\User\Desktop\OpenCV\opencv2413\opencv\build\x86\vc14\bin\opencv_traincascade.exe -data C:\Users\User\Desktop\data -vec C:\Users\User\Desktop\pos_vec.vec -bg C:\Users\User\Desktop\bg.txt -numPos 14 -numNeg 16 -numStages 2 -featureType LBP

bg.txt file contains the following: (images are in C:\Users\User\Desktop\ImageSearch\neg)

\ImageSearch\neg\Tree1.bmp
\ImageSearch\neg\Tree10.bmp
\ImageSearch\neg\Tree11.bmp
......

I tried converting the text file to ANSI, UTF-8, UT8-BOM but nothing seems to work. I am not sure what I need to do to make this work.

edit retag flag offensive close merge delete

Comments

even if it's on windows, for the txt files there, please either use single forward slashes like / , or double backward ones, like \\

berak gravatar imageberak ( 2019-07-19 00:50:13 -0600 )edit