Ask Your Question

Adi Ulici's profile - activity

2018-01-03 04:15:29 -0600 received badge  Famous Question (source)
2016-03-03 23:11:13 -0600 received badge  Notable Question (source)
2015-05-26 16:46:12 -0600 received badge  Popular Question (source)
2014-02-05 09:54:18 -0600 commented question OpenCV traincascade fails: Insufficient memory

I tried using precalcValBufSize and precalcIdxBufSize to increase the buffer size to 2048 but it gives me the same error..

2014-02-05 09:49:23 -0600 commented question OpenCV traincascade fails: Insufficient memory

This is the command I'm using: opencv_traincascaded -data ./trained5/ -vec samples.vec -bg neg.txt -numPos 300 -numNeg 7 -w 50 -h 50 -numStages 5

2014-02-05 04:22:18 -0600 asked a question OpenCV traincascade fails: Insufficient memory

Hi,

I'm trying to use the traincascade app to create my own data, but it keeps giving me insufficient memory even though I have enough free memory.

OpenCV Error: Insufficient memory (Failed to allocate 536871664 bytes) in unknown function, file D:\Dev\opencv\modules\core\src\alloc.cpp, line 52

My samples file has 1000 positive samples of size 50x50. I tried with 500 also, it didn't work. Only with 100 worked but I'm afraid that isn't enough.