Gift card recognition using a camera
First Claim
1. A system, comprising:
- at least one processor; and
memory including instructions that, when executed by the at least one processor, cause the system to;
provide a user interface for a user of the gift card to capture an image of the gift card, the gift card containing a plurality of claim code characters;
receive the image of the gift card;
binarize the image;
determine a plurality of character patches of binarized image;
group the plurality of character patches along one or more baselines;
classify grouped character patches into a first set of candidate claim code characters according to one or more machine learning algorithms;
determine whether the plurality of claim code characters are found in the first set of candidate claim code characters;
in response to the plurality of claim code characters not being found in the first set of candidate claim code characters, rotate the grouped character patches along the one or more baselines to determine one or more new baselines;
determine top and bottom positions of the grouped character patches to perform a first close cut based at least upon X-gradient information of the grouped character patches;
perform a second close cut on the grouped character patches based at least upon Y-gradient information of the grouped character patches;
classify the grouped character patches into a second set of candidate claim code characters according to the one or more machine learning algorithms;
determine the plurality of claim code characters from the second set of candidate claim code characters; and
in response to a successful verification of the plurality of claim code characters, enable funds associated with the gift card to be applied or accessed.
1 Assignment
0 Petitions
Accused Products
Abstract
Various embodiments describe systems and methods enable a computing device of a user to capture an image of a gift card, or other such monetary device containing a code, with a camera or otherwise receive an image of that gift card. The computing device can be configured to recognize codes, such as digit claim codes, of the gift card by using one or more image processing, computer vision, and/or machine learning algorithms. After a successful detection and verification of a claim code, money or funds deposited in, or otherwise available from, an account associated with the gift card can be utilized, such as applied to a purchase or deposited into the user'"'"'s account. In many instances, a user interface (UI) can be provided on the computing device for the user to use to capture an image of a gift card and redeem the funds from the corresponding card.
103 Citations
20 Claims
-
1. A system, comprising:
-
at least one processor; and memory including instructions that, when executed by the at least one processor, cause the system to; provide a user interface for a user of the gift card to capture an image of the gift card, the gift card containing a plurality of claim code characters; receive the image of the gift card; binarize the image; determine a plurality of character patches of binarized image; group the plurality of character patches along one or more baselines; classify grouped character patches into a first set of candidate claim code characters according to one or more machine learning algorithms; determine whether the plurality of claim code characters are found in the first set of candidate claim code characters; in response to the plurality of claim code characters not being found in the first set of candidate claim code characters, rotate the grouped character patches along the one or more baselines to determine one or more new baselines; determine top and bottom positions of the grouped character patches to perform a first close cut based at least upon X-gradient information of the grouped character patches; perform a second close cut on the grouped character patches based at least upon Y-gradient information of the grouped character patches; classify the grouped character patches into a second set of candidate claim code characters according to the one or more machine learning algorithms; determine the plurality of claim code characters from the second set of candidate claim code characters; and in response to a successful verification of the plurality of claim code characters, enable funds associated with the gift card to be applied or accessed. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-implemented method, comprising:
-
receiving an image of a gift card, the gift card containing a plurality of claim code characters; binarizing the image; determining a plurality of character patches of binarized image; grouping the plurality of character patches along one or more baselines; classifying grouped character patches into a first set of candidate claim code characters according to one or more machine learning algorithms; determining whether the plurality of claim code characters are found in the first set of candidate claim code characters; in response to the plurality of claim code characters not being found in the first set of candidate claim code characters, rotating the grouped character patches along the one or more baselines to determine one or more new baselines; determining top and bottom positions of the grouped character patches to perform a first close cut based at least upon X-gradient information of the grouped character patches; performing a second close cut on the grouped character patches based at least upon Y-gradient information of the grouped character patches; classifying the grouped character patches into a second set of candidate claim code characters according to the one or more machine learning algorithms; and determining the plurality of claim code characters from the second set of candidate claim code characters; and in response to a successful verification of the plurality of claim code characters, enabling funds associated with the gift card to be applied or accessed. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A non-transitory computer-readable storage medium including instructions that, when executed by at least one processor of a computing system, cause the computing system to:
-
receive an image of a gift card, the gift card containing a plurality of claim code characters; binarize the image; determine a plurality of character patches of binarized image; group the plurality of character patches along one or more baselines; classify grouped character patches into a first set of candidate claim code characters according to one or more machine learning algorithms; determine whether the plurality of claim code characters are found in the first set of candidate claim code characters; in response to the plurality of claim code characters not being found in the first set of candidate claim code characters, rotate the grouped character patches long the one or more baselines to determine one or more new baselines; determine top and bottom positions of the grouped character patches to perform a first close cut based at least upon X-gradient information of the grouped character patches; perform a second close cut on the grouped character patches based at least upon Y-gradient information of the grouped character patches; classify the grouped character patches into a second set of candidate claim code characters according to the one or more machine learning algorithms; and determine the plurality of claim code characters from the second set of candidate claim code characters; and in response to a successful verification of the plurality of claim code characters, enable funds associated with the gift card to be applied or accessed. - View Dependent Claims (18, 19, 20)
-
Specification