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

this real image

after doing p2c transformation images become

p2c transofrmation

but since images come in different angles p2c transformation cut out characters

cutted char

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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -