2016-08-25 11:00:56 -0600 | commented question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled I increased negatives to 1200 and 4800 samples, no changes! Regenerate vector file with smaller and larger width and height(24&100), no changes! I doubled the positives(18 images), no changes! But with LBP type training, it passed stage 4 and stopped at 5. However, training with 9 positive samples is just for test, I will prepare more than thousand images for final xml file. |
2016-08-23 09:13:35 -0600 | commented question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled Yes, but the accuracy was very bad! It's because of the train failure or low positive images? |
2016-08-23 08:24:28 -0600 | commented question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled I did, I added 550 jpg to the negative folder and updated the bg.txt file: http://pastebin.com/8fxCwrxu. :( |
2016-08-23 05:47:30 -0600 | commented question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled I increased negative images to 600, but same error, just took much more time: http://pastebin.com/J6vtArrX. You explained but I still don't know what's the relation between number of negatives and stop the training procedure. |
2016-08-23 04:05:39 -0600 | commented question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled Very small, 50*28 pixels. |
2016-08-23 03:20:02 -0600 | asked a question | Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled I've built opencv 2.4.13 for ubuntu 16.04 x64 from source zip file downloaded from opencv website. I prepared the required libraries and packages according OpenCV Installation in Linux, then compiled the release version by : then: and then: The installation was successful and I could use "opencv_createsamples" to generate the desired vector file. The problem is the "opencv_traincascade". Let me show you some info: Here is my training command, but if look at the end of the training procedure, you will see a similar error. But this time, the negative images description file is correct and "opencv_traincascade" works properly until stage 4!!!! Here is the "/home/mohammad/Documents/bg.txt" contents which includes address of 50 negative images: (more) |