How can I do this in Python/PIL? I.e., given the four points of an offset rectangle (a photographed document), make it look flat on as if it were scanned. Is there a simple algorithm for it?
Also, are there any other manipulations I should do to make it look more "scan-like"?
I want to make a simple version of this program for myself in Python.