Ask Your Question

object identification in aerial image

asked 2013-04-29 01:51:44 -0500

Darshan gravatar image

image description i am considering an aerial image taken from an UAV as input to our project. Please suggest the method or procedure that should be followed in order to identify and, later count the banana trees in the image. i am using opencv library along with visual studio 2010. I have been able to filter the images using mean shift and also image descriptionextract only the vegetation part of the image but i am unable to proceed further. Any help would be hugely appreciated. image description

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-04-29 02:07:41 -0500

You can use findContours on your binary images to define regions of interest and segment out the existing blobs. Before that you might want to remove some small blobs by applying erosion and dilation functionality.

After you retrieved the different contours, you could use those contours to perform object detection. If your banana plant has a specific look from top, then you can create a cascade classifier for the model. Or you could use a machine learning technique like SVM or random forests.

edit flag offensive delete link more


thank u. i finished finding d contour an all... but can u tell me how to train a SVM or random forests to identify all d banana tree in the image... M new to machine learning and opencv as well..

Darshan gravatar imageDarshan ( 2013-04-29 10:03:02 -0500 )edit

then basically you need to go read topics like this one, which is a tutorial about SVM. I will not work out the code for you, because it will take some time to actually complete it...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-29 11:12:48 -0500 )edit

okay i go through the tutorial. i tried template matching to identify the trees but it only identifies the tree from which i took template.. can u tel me how can i actually make that it to identify all the trees.

Darshan gravatar imageDarshan ( 2013-04-29 11:31:01 -0500 )edit
sharan gravatar imagesharan ( 2013-04-29 11:58:42 -0500 )edit

you need to switch from template matching towards model based matching. Look for Viola & Jones cascade classifier, a SVM based on HOG features or even a latentSVM approach.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-29 12:45:12 -0500 )edit

answered 2015-05-06 00:20:09 -0500

Lance gravatar image

Hi! I'm solving the exact same problem right now. Were you able to count the bananas? Can you please help me.

edit flag offensive delete link more


Why are you popping up all these ancients topics, please create a new one for your purpose!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-05-07 04:59:35 -0500 )edit

answered 2017-09-22 04:40:48 -0500

Dear Darshan,

This is a very interesting topic. I have been doing similar research in banana plantation. I would like to know your progress in banana plant counting ?

Can you give me some insights on how to apply OpenCV to detect the banana plantations. I look forward to hear from you.

Thank you.


Suman Ghimire

Msc in Engineering & Technology SIIT, Thammasat University Thailand

edit flag offensive delete link more

Question Tools


Asked: 2013-04-29 01:51:44 -0500

Seen: 3,184 times

Last updated: Apr 29 '13