As Vitaliy Kaurov's answer mentioned, anyone can use a method based on Neural Network (NN) to give a try? Then the bounty is deserved.
Suppose I have a empty paper like
Then I write some text on the paper,then 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 like following is expected.
Actually I think the ImageAlign
can help me(it cannot align a distorted image as its documentation).
ImageAlign[template, img, TransformationClass -> "Similarity"]
But it is a very slow and give me a poor result.Can anybody give a better solution for this?