I have scanned a number of photographs, four to a scan, and need to extract the individual photos from the scans. Currently I copy the jpeg of a scan to four files. In each copy, I crop so that only the desired photo remains. I then rotate the image to the appropriate orientation and then save the individual photo in a separate file.
Currently, I can do the above in about five minutes per scan, but there are a lot of scans.
I would like a python script that will, at the least, separate the photos from the scan into separate files. Bonus if the orientation can be correctly guessed and the image rotated.
I have attached a sample scan and the extracted images.