Hi, I am pretty new to Open/EmguCV and therefore pretty clueless about my problem.
I have created my own cascade along to the many tutorials found online, But when it comes to using it, I fail.
I am using the cascade with this code, but somehow the program just ends itself without any errormsg when it comes to exact that line.
HaarCascade LicencePlate = new HaarCascade(Cascade);
MCvAvgComp[] Positives = LicencePlate.Detect(grayFrame); // The Line it crashes
if (Positives.Length > 0)
{
foreach (var _positive in Positives)
{
Image tmp = frame.Copy();
frame.ROI = _positive.rect;
frame.Draw(_positive.rect, new Bgr(Color.Red), 0);
}
}
Also, in case it might help, the header and first stage of my classifer
BOOST HAAR 21 100 GAB 9.9900001287460327e-001 1.0000000149011612e-001 9.4999999999999996e-001 1 100 0 1 ALL 10 <_>3 8.8072061538696289e-001 <_>
0 -1 7 3.0345141887664795e-002
-9.5833331346511841e-001 9.4736844301223755e-001 <_>
0 -1 10 8.9150235056877136e-002
-1. 8.8454538583755493e-001 <_>
0 -1 9 -1.5882638096809387e-001
9.5450854301452637e-001 -8.7670880556106567e-001
↧