How to correct inclination of letters?

asked 2015-02-05 04:33:01 -0600

thdrksdfthmn gravatar image

I want to do OCR, but sometimes I get the letters with a specific inclination, I can detect the angle, but I am not sure how to contruct the transformation matrix.

edit retag flag offensive close merge delete

Comments

1

hmm, look at this

(imho, you got shearing there, not a plain rotation. this is no more an affine transform)

(if you rotate it, e.g, the 't-crosses' won't be horizontal any more)

berak gravatar imageberak ( 2015-02-05 05:04:15 -0600 )edit

I still do not get the formula for the value in the perspective matrix... Can you suggest me something?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-02-05 07:16:57 -0600 )edit

Can you add some sample images? If it is a planar warp, you can find the homography and correct the warping.

Adi gravatar imageAdi ( 2015-11-17 07:48:46 -0600 )edit