Card photos
Photograph the card flat, straight-on, under even light, on a plain background that contrasts with the card — and leave a visible margin of background on all four sides. The next step reads that margin automatically to find the card's edges, so don't crop tight to the card.