В чем была проблема? Вылетает с такой же ошибкой. Значения minhitrate и -maxfalsealarm оставил по умолчанию
C:\Users\Login>D:\OpenCV2.1\bin\opencv_haartraining.exe -data D:\img\ -vec D:\im
g\sat.vec -bg D:\bg.txt -npos 500 -nneg 5 -nstages 20 -nsplits 2 -mem 500 -nonsym -w 60 -h 60
Data dir name: D:\img\
Vec file name: D:\img\sat.vec
BG file name: D:\bg.txt, is a vecfile: no
Num pos: 100
Num neg: 5
Num stages: 20
Num splits: 2 (tree as weak classifier)
Mem: 1500 MB
Symmetric: FALSE
Min hit rate: 0.995000
Max false alarm rate: 0.500000
Weight trimming: 0.950000
Equal weights: FALSE
Mode: BASIC
Width: 60
Height: 60
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.53674e-007
Tree Classifier
Stage
+---+
| 0|
+---+
OpenCV Error: Insufficient memory (Failed to allocate 926983220 bytes) in unknow
n function, file ..\..\..\..\ocv\opencv\src\cxcore\cxalloc.cpp, line 52
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Добавлено:
Ошибка была в bg.txt хотя createsamples и не ругался