[OCV 244] - haartraining error ( Assertion failed (elements_read == 1) ... line 1859 (Bug #2817)
Description
Hi,
I try to generate haar data but it crash...
I have the following trace:
@Data dir name: treeData Vec file name: vecfile.vec BG file name: negative\output_info2.txt, is a vecfile: no Num pos: 2000 Num neg: 2000 Num stages: 30 Num splits: 1 (stump as weak classifier) Mem: 2000 MB Symmetric: TRUE Min hit rate: 0.995000 Max false alarm rate: 0.500000 Weight trimming: 0.950000 Equal weights: FALSE Mode: BASIC Width: 32 Height: 32 Applied boosting algorithm: GAB Error (valid only for Discrete and Real AdaBoost): misclass Max number of splits in tree cascade: 0 Min number of positive samples per cluster: 500 Required leaf false alarm rate: 9.31323e-010 Tree Classifier Stage +---+ | 0| +---+ Number of features used : 266016 Parent node: NULL *** 1 cluster *** OpenCV Error: Assertion failed (elements_read == 1) in unknown function, file ..\haartraining\cvhaartraining.cpp, line 1859 V:\opencv\opencv2_4_4\apps\appOpenCV\Release\x86>pause@
I can see there already this trouble but I don't know haw to solve it.
Can you help me?
Best Regards.
Associated revisions
Merge pull request #2817 from bf:patch-1
History
Updated by Yannick Marion about 12 years ago
To avoid crash I have replace CV_Assert(..) by assert(..).
But the next is not so good because I have the following message :
Invalid background description file.
So I will find it.
Updated by Anna Kogan about 12 years ago
Hello Yannick,
Thank you for reporting the issue. Replacing CV_Assert to assert would'n help there=) If you could work on fix? a patch or a pull request in our repo would be very appreciated!
- Description changed from Hi, I try to generate haar data but it crash... I have the following trace: ... to Hi, I try to generate haar data but it crash... I have the following trace: ... More
- Target version set to 3.0
- Assignee set to Marina Kolpakova
- Category set to objdetect
Updated by Marina Kolpakova almost 12 years ago
- Assignee deleted (
Marina Kolpakova)
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4509