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

2 ビュー (過去 30 日間)
Paula Ting
Paula Ting 2015 年 8 月 31 日
回答済み: Image Analyst 2016 年 7 月 21 日
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 件のコメント
Walter Roberson
Walter Roberson 2015 年 8 月 31 日
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.

サインインしてコメントする。

回答 (2 件)

Jinwoo Jung
Jinwoo Jung 2016 年 7 月 21 日
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 2016 年 7 月 21 日
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!

Translated by