MATLAB Answers


Object detection with blob analysis

Asked by Summit
on 10 Jul 2015
Latest activity Commented on by Selva Karna on 13 Sep 2017
Is it possible to detect a moving object with the stable rectangular shape? I have a RC car running on running machine, and I have a camera mounted on top of the RC car so it can monitor the car as Bird's point of view. I've tried to detect with blob analysis but when car moves(changing rail left to right or vice versa), it seems that the shape of rectangular gets disturbed; it is not stable and there are some noises Is there any way that I can detect an object in this project by defining a certain area of object so it remains the same shape?
Thanks in advance.


Sign in to comment.

1 Answer

Answer by Richa Gupta on 16 Jul 2015

Hi Summit,
It is possible to detect a moving object with a stable rectangular shape. You can achieve this using morphological operations and Hough Transform.
Morphology is a broad set of image processing operations that process images based on shapes. Here is a link for more information on these operations:
You can use some of these functions to remove noise from the image, for example, " imerode ", " imdilate ", and ' regionprops '. By choosing the size and shape of the neighborhood, you can construct a morphological operation that is sensitive to specific shapes in the input image.
MATLAB also provides “ hough ” function that implements the Standard Hough Transform (SHT). This function can detect shapes which can be represented using parametric equations.
In the cases where the shape cannot be represented parametrically (using an analytical function), you can use Generalized Hough Transform (GHT). An implementation of GHT can be found on MATLAB File Exchange. Here is the link to the submission:
Hope this helps.

  1 Comment

Hi Richa Gupta, possible to remove selected moving object , from video ?

Sign in to comment.