matlab - Rotate Circular Images -
hello i'm going text detection on circular images. after preprocessing polar cartesian transformation on images
this example of real image
after doing p2c transformation images become
but since images come in different angles p2c transformation cut out characters
i think need proper rotation before p2c transformation.
my question kind of rotation method proper situation? or should start p2c transformation based on histogram values ? or kind of other ways guys suggest me?
thanks
i suggest polar cartesian transformation , analyse resulting image x
. can find letters summing values along x dimension , using threshold detect if there letter or not:
y = sum(x,1); th = (max(y) + min(y)) / 2; letters = y < th;
now can find out if there letter @ border of image , shift image if case.
if sum(letters([1:10,end-10:end])) x = circshift(x,[0,10]); end
of course can't sure there no letter @ border now, better loop procedure until no letter found @ border.
Comments
Post a Comment