Can i specify the size of the rectangle that i only want to detect? If so, how?

2 views (last 30 days)
I'm currently doing a thesis regarding license plate recognition of moving vehicles from CCTV. So far, i have detected all rectangles in one frame. But, i would only want to detect a certain size of a rectangle (particularly the rectangle of the vehicle) because my plan is after detecting the rectangle of the vehicle, i can now set the location of the license plate since the location of the license plate is constant in all the frames. I also want to ask how to set a location in which you can detect the license plate, how to set the location.
here is an example of the rectangles that i detected.
Thank you in advance!
  1 Comment
Walter Roberson
Walter Roberson on 31 Aug 2015
It would be very unusual if all of the vehicles are exactly the same size in the images.
It is plausible that all of the license plates are exactly the same physical size, but it is not uncommon for license plates of different jurisdictions to be different sizes, and it is not rare for different "classes" of license plates (e.g., personal vehicle compared to commercial truck) to be different sizes. But even if they are all exactly the same physical size, is your set-up really going to snap images at exactly the same distance so that the resulting size of the plate within the image is exactly the same?
I think you should be reconsidering.

Sign in to comment.

Answers (2)

Jinwoo Jung
Jinwoo Jung on 21 Jul 2016
Would u let me know how u detected square shape??
What Im doing is not detecting the plate, but something similar...
U can say breifly! Thx in advance

Image Analyst
Image Analyst on 21 Jul 2016
You can try bwareaopen() or bwareafilt() or bwpropfilt().

Community Treasure Hunt

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

Start Hunting!