I'm building application for recognize ID cards similar to the attached images The ID list is predefined say i have 30 ID type , each type represent one country now i want to classify the input image to the proper Type , i don't need to recognize the ID , because i have predefined template for every ID type and i will use one of known OCR systems to get the requierd data.
I used Matchtemplate as follow
- Extract unique area from every ID
- Save the extracted unique areas in files each file will be contain one template represent the ID
- when Unknown image is inserted to the system , i'm trying to find the best mach from all saved templates , then find the requested ID
but the system slow because i do 30 MatchTemplate to find the correct one , my Question now is there any other algorithm to detect the ID type faster and correct