I am sorry it seems a starting question but just wondering can i use rectangular dimensions
for training opencv haar cascade
. I tried with square samples
and the resultant image was detected fine but when i tried with rectangular width and height as for license plate the aspect ratio is 2:1
between width and height so i am using the same aspect ratio while training but the resultant classifier is not detecting anything in the image.
nStages = 14
nPositive = 1780
minHitrate = 0.996
maxFalseAlarm = 0.2
nNegatives = 14000
width = 48
height = 24
Haar classifier type = BASIC
Boost type = gentle adaboost
The above are the parameters i have set for training of the classifier
. Can anyone please confirm that can i use rectangular parameters
for positive samples or not. Also please suggest some modifications to have the training done properly.
The size of negative images for training is around 240x161
annd 420x240
Thank you.
EDIT 1:
I am using the call as follows.
f_cascade.detectMultiScale( image, detected_objects, pyramidScale, 2, 0|CV_HAAR_SCALE_IMAGE);