Basically, I have scanned in many old photos using our printer. About four photos fit on each page of the scan (around the four corners of the page), and the white space isn't always completely white. I want to use openCV to automatically crop them into individual photos. Need suggestions for a way to tackle this problem, thanks!
I thought about detecting the shape of the four rectangles on the page to get the coordinate or using opencv grabCut... I don't know
I've tried to use PIL, but couldn't crop the photos correctly since some photos also had the same color as the background which would cause the crop to end prematurely.
This is a rough sketch of what it looks like
(except they would be actual photos of people)