Ask Your Question

Revision history [back]

Traincascade Train dataset for temp stage can not be filled

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.