MATLAB Answers

Object detection with blob analysis

조회 수: 17(최근 30일)
Summit 10 Jul 2015
댓글: Selva Karna 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.


Richa Gupta
Richa Gupta 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
Selva Karna
Selva Karna 13 Sep 2017
Hi Richa Gupta, possible to remove selected moving object , from video ?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by