Suppose I have a empty paper like
Then I write some text on the paper,but the result paper have been distorted,rotated and translated.like
How to adjust the result papper according the original empty paper? As you see,some empty transverse line can align this two images. The result(I get it by Photoshop) like following is expected.
I want to use OpenCV to do this.Can anybody give a better solution for this?