A computer vision project about number recognition of credit card is achieved by OpenCV. The accuracy is 100%.
The GIF below shows PART II and PART III in the framework:
- PART II
- PART III
Environment
- Window 10
- Pycharm 2020.1.2
- OpenCV 4.2.0
- Python 3.7.4 with some necessary libraries
Note: Because argparse library is used in this project, please:
- edit parameters in Pycharm: --image images/credit_card_01.png --template images/ocr_a_reference.png
- or type
python ocr_template_match --image images/credit_card_01.png --template images/ocr_a_reference.png
in the command prompt