Hello,
I use the Cascade for training my database in Matlab. The code which I used is according to below:
>>trainCascadeObjectDetector('car_1_HOG.xml',car,negativeFolder,'NumCascadeStages',3,'FeatureType','HOG');
>>detector = vision.CascadeObjectDetector('car_1_HOG.xml');
In this code, car is the .mat file which consists of the cars and negativeFolder is the folder which has negative images.
When I use this code for train, it takes about 30 seconds. In test part, I use this code:
>> bbox = step(detector,img); // img is the input image
>> detectedImg = insertObjectAnnotation(img,'rectangle',bbox,'car');
>> figure; imshow(detectedImg);
When I run the test part, it takes a long time and it not finished. Hence, I cannot see the output.
Could anyone help me what is my wrong?
Thanks