-
- result picture
-
-
- the each digit with the same size of the digit template
- to get the contour of digit region on the card, we can do these steps:
- top hat -- which highlight the brighter part e.g. digit\pattern\letter etc.
- sobel gradient -- to remain and enforce the edge information
- MORPH_CLOSE -- morphological close operation (first dilate then erode), blending the remaining region togather
- THRESH_OTSU -- find the suitable threshold automatically, then make it binary, preparing for finding the contour
- Selecting the proper contour based on the known size (width/lengtn/ration etc.)
-
-
Meaning for morphology close operation:
- Fill small black holes in the while frontgrond 2.Connect Broken White Areas
- Smooth Object Borders
-
9x3 rectangle kernel: Used for the first close operation, which better to manipulate on a string of horizontal numbers or characters and blend them togather
-
5x5 square kernel: Further smooth and fill in any small holes or unconnected areas that may still exist after the first operation
-
-
Notifications
You must be signed in to change notification settings - Fork 0
CONSTANT1386/CreditCardOCR
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple but typical case for recognizing credit card number
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published