Ask Your Question

McBodik's profile - activity

2017-11-07 11:41:51 -0600 received badge  Notable Question (source)
2016-12-28 23:51:46 -0600 received badge  Favorite Question (source)
2016-04-01 03:29:28 -0600 received badge  Great Question (source)
2015-05-13 09:53:47 -0600 received badge  Popular Question (source)
2014-12-09 13:54:11 -0600 marked best answer how works bruteforcematcher?

Hi. I can't find any information how bf and other matchers works. Can you help?

2014-07-11 05:06:01 -0600 received badge  Famous Question (source)
2014-01-15 02:08:49 -0600 received badge  Notable Question (source)
2013-10-22 01:49:25 -0600 received badge  Good Question (source)
2013-10-15 12:32:42 -0600 received badge  Popular Question (source)
2013-08-27 16:58:12 -0600 received badge  Nice Question (source)
2013-07-30 05:26:21 -0600 marked best answer about traincascade paremeters, samples, and other...

Hi all.

Firs of all I want to tell, my question contain many sub questions, answers to which already exist, but they are not complete or ambiguous.

So first - maxFalseAlarmRate - I have most problems with it. If this is max - it mean current false alarm less than required. But in source we can see if(tempLeafFARate <= requiredLeafFARate) then "Required leaf false alarm rate achieved." It's funny - I can make maxFalseAlarmRate = 0 and newer have this error? It's opencv 2.4.2 fault? And so - what mean maxFalseAlarmRate at all. How can I calculate it? Why we have false alarm if in negatives there are no object?

Next - if there are false alarm, my positives are bad? Size - if e.g. I have picture 100x200 what size in vec-file will be most appropriate? 10x20? How to calculate minHitRate? There says - samples must be unique. If samples are from one picture it bad? Why? They also will be unique in one object. If I created many samples from many objects, how can I pack them in vec-file?

About vec-file. How many samples should it contain? How many positives and negatives are optimal and how to choose the optimal number of stages? There are interesting error "Bad argument (Can not get new positive sample. The most possible reason is insufficient count of samples in given vec-file.)". I found formula vec-file has to contain >= (numPose + (numStages-1) * (1 - minHitRate) * numPose) + S, where S is a count of samples from vec-file. If parametr numPos - number of samples in every stage, why I cant get num of samples in vec-file and divide it on num of stages? But in formula vec-file has to contain >= x + count of samples from vec-file. Maybe I understan something, "vec-file has to contain" and "count of samples from vec-file" this is not the same thing? numPose - is number of positive samples used in training for every classifier stage? What exactly does parameter -numPos means? And how to choose it?

When I start training I see number of stages, next e.g. Pos count : consumed 200 : 232 why consumed is more than count?

After that row there is no output info long time, after - Neg count : acceptance ratio What is acceptance ratio?

Next - precalculaton time - I cant understand what is it?

And the end is table with number, hit rate and false alarm rate. What mean this rows and hr and fa? hr and fa for what?

Also i want to know more about paremeters bt , weightTrimRate, maxDepth, maxWeakCount і mode. What tipe (bt) use? How calculate weightTrimRate, maxDepth, maxWeakCount, and what mode is better?

P.S. Why it takes so long before outputing numNeg Is it normal that createsample is working 4 days and it is just 6th step? How could it be : I've put falseAlarmRate=0 but there is condition in source code: 1>=falseAlarmRate >0 and it still starts without errors and warnings.

About performance. I built opencv with tbb. Traincascade use 26% cpu, but I don ... (more)

2013-07-30 05:26:05 -0600 received badge  Student (source)