While running Traincascade or Haartraining code , a error occurs
After creating a sample vec file , i like to train my haartraining using below code,
haartraining -data data -vec samples1.vec -bg negative.txt -numStages 10 -numPos 20 -numNeg 200 -w 50 -h 50 -mode ALL -precalcValBuffSize 1024 -precalcIdxBuffSize 1024
but error occurs as shown in image, can anyone help me to solve the issue...
can you please replace the screenshot with a TEXT version ? thank you.
please add the first few lines of your
negative.txt
to the questionmy negative.text wil be like \negative_images\resized_hills_013.negative_images \negative_images\resized_hills_015.negative_images \negative_images\resized_hills_016.negative_images
ERROR....
Unspecified error (Unable to read negative images) in function cvCreateTreeCascadeClassifier,..\src\cvhaartraining.cpp(2167)
please use forward slashes (even on windows) and an absolute path for the filenames there
yeah , thanks , As you suggested I used forward slash and absolute path , eventhough i used to get same error.
none of the above looks like a valid path to an image. what is "negative_images" ?
btw, "haartraining" is from outdated 2.4 ? and why the heck are you running this from an anaconda prompt ?
my image id of Bmp format , so at the end negative_images should be replaced with bmp
so i want to run in cmd?? can you please suggest me train , I dont have opencv_traincasacde too