Ask Your Question
0

Cascade classifier detect multi scale always returns nothing.

asked 2016-10-11 04:20:23 -0600

prala123 gravatar image

updated 2016-10-11 08:18:47 -0600

Hi guys, sorry to bother again.

But when I run the the detectMultiScale on a trained cascade classifier nothing is ever detect, no rectangles. Weird thing is even with just one stage i get good results using LBP here is my results.

POS count : consumed   2000 : 2000
NEG count : acceptanceRatio    4000 : 1
Precalculation time: 0.196
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|    0.965|  0.08575|
+----+---------+---------+

and this is how i call the classifier ...

classifier.detectMultiScale(testMat, rectangles, 1.1, 0, 0, cv::Size(30, 30), cv::Size(50,50));

Any hint on why this is happening?

Thanks

edit retag flag offensive close merge delete

Comments

try classifier.detectMultiScale(testMat, rectangles, 1.1, 0, 0, cv::Size(30, 30));

sturkmen gravatar imagesturkmen ( 2016-10-11 08:56:14 -0600 )edit

i found the problem, my input image height had the same height as the trained window, now it is height +1 and it is working : )

prala123 gravatar imageprala123 ( 2016-10-11 09:47:24 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-13 05:31:46 -0600

prala123 gravatar image

I found the problem, my input image height had the same height as the trained window, now it is height +1 and it is working : )

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-11 04:20:23 -0600

Seen: 678 times

Last updated: Oct 13 '16