主权项 |
1. A computer-implemented method for extracting card information, comprising:
receiving, by one or more computing devices, an image of a card; identifying, by the one or more computing devices, a first area of the image, the first area being selected as a potential location of one or more digits on the image; performing, by the one or more computing devices, a classification algorithm on data encompassed by the first area; identifying, by the one or more computing devices, one or more lines of potential digits on the image based on the results of the application of the classification; determining, by the one or more computing devices, one or more card models associated with a user, each of the one or more card models comprising digit distribution patterns of data displayed on an image associated with the particular card model; comparing, by the one or more computing devices, the image to the one or more card models associated with the user to identify a particular one of the card models corresponding to the image; performing, by the one or more computing devices, an optical character recognition algorithm on areas of the card that are anticipated by the one or more computing devices as comprising digits based on the identified particular one of the card models and the identified lines; determining, by the one or more computing devices, a confidence level of one or more results of the applications of the optical character recognition algorithm to the image; and verifying, by the one or more computing devices, a particular result based at least in part on a determination that the confidence level is the highest of the determined confidence levels. |