Detecting dirt on scanner glass (via scanned photo)

Not sure what that means exactly? If you mean that I need to scan a blank photo every X images, maybe that would work for the future, but I have thousands of scans already and need a simple way to see if I need to rescan any of them. It would take me days to rescan them all. If you meant that there is some way in OpenCV to check for blank space, I would be happy to look into that if you can give me some indication on how to do that