For me, if negative.txt doesn't have full path directories, the opencv_traincascade command fails with:
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 399 : 399
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.
For me, if negative.txt doesn't have full path directories, the
opencv_traincascade
command fails with:This change fixes that issue