There are card identifier apps that connect to your webcam - you just flash a card under the camera and it will identify the card and set (used most often to give a quick market price or help you catalog your collection digitally) but you could definitely fit that into a larger automation project.