Object Detection issue [closed]

asked 2016-09-12 03:41:43 -0600

hashir gravatar image

updated 2016-09-12 07:58:00 -0600

I am using Haar trainer and classifier to train my database at end it is not not detection these pest, help me how can i detect this insect or can suggest any other method for this ?image description

i am using Haar cascade in making.I am using 500 positive images and 1300 negatives image and perform 20 stages to create XML file . below are the images i collected image description

it is working on 2 or 3 images but with the error :( image description

i follow all the steps but still not detecting :( i can also send xml file if anyone can check it ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-27 03:14:13.795816

Comments

1

Please provide at least an insight in what you did, how your model performed and some decent samples which you trained with!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 06:22:14 -0600 )edit

i attach the samples above and other related info

hashir gravatar imagehashir ( 2016-09-12 07:54:45 -0600 )edit

Did you cut out the positives or annotated them? How about test samples?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 07:56:56 -0600 )edit

yes by using objectmarkers.exe i crop out these images and save that data into info.txt.

hashir gravatar imagehashir ( 2016-09-12 07:59:17 -0600 )edit

can someone help me?

hashir gravatar imagehashir ( 2016-09-13 11:27:22 -0600 )edit

While using the CascadeClassifier::detectMultiScale, you can play around with the function arguments, particularly scale and size of the object detected. This should weed out small objects such as the leaf stem. Take a look here

PS: The third image from the bottom right in your training set suspiciously resembles the falsely detected leaf stem in the sample test image you've provided, hence the misclassification. Adjusting the minSize argument in detectMultiscale might help fix this issue.

v4ven27 gravatar imagev4ven27 ( 2016-09-14 15:01:56 -0600 )edit

thanks for the help bro but i had not develop the code i am using c++ exes files given here in the link below : https://www.cs.auckland.ac.nz/~m.reza...@v4ven27 i am very helpful if u help me on this :)

hashir gravatar imagehashir ( 2016-09-15 16:55:08 -0600 )edit