Apply OCR to recognize the sixteen digits on the credit card.
- OpenCV = 3.2.0
g++ -o main main.cpp `pkg-config --cflags --libs opencv`
./main "sample.jpg"
The output should be
>> Account Number: 4000-1234-5678-9123
Building credit card OCR can be accomplished in the following steps:
- Detect and use the edges in the image to find the contour representing the card. Then apply a perspective transform to obtain the top-down view of the card.