Tried Flat field correction - doesn't work so well.
Best version till now on non-white b.g. is to simply multiply the image by 1.5 (and subtract 40, somehow this lead to bit more noise but preserves information that is otherwise lost), basically increase contrast.
Document Image Processing for Scanning and Printing by Ilia V. Safonov, Ilya V. Kurilin, Michael N. Rychagov, Ekaterina V. Tolstaya. Added book in Resources. (Who's going to read this. LOL)
A common problem is that there are more than 4 points in the desired contour, also sometimes the contour is non-convex.
To make it convex I used the convex hull but can't figure out a robust algorithm for selecting the best 4 points.