This is not an easy field and you Need to dive in deep into the theory. I would suggest you this as a start:
Redirect Notice[
^]
Please note the above article is only a start and it descibes the "most" complex case.
In case you have not a photography, but a scanned document I suggest to read through what this Google search presents:
Google[
^]
I am aware that this answer is not really a quick help. But if noone who deals with this topic by chance has read your question, you will get no better answers. Nobody here will be ready to do your job.
Sorry not to have better News.