hi i have a project about License plate recognition ..

2 次查看(过去 30 天)
my project deals only with video sequences taken at night .. i wrote this code to choose a rectangular object from many.. but the problem is that the centroid is sometimes a black pixel and the whole image disappear ... i want a method to choose objects instead of centroid
CODE :
for i=1:numobjects
bo=info(i).BoundingBox;
ratio=(bo(4)/bo(3));
if ratio > option.loc_ratio_value
cen=info(i).Centroid;
c(end+1)=cen(1);
r(end+1)=cen(2);
also in Euler:
for i=1:numobjects
e=info(i).EulerNumber;
if e<option.loc_EulerNum
cen=info(i).Centroid;
c(end+1)=cen(1);
r(end+1)=cen(2);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by