SkillAgentSearch skills...

VisionCreditScan

Scan Credit Cards using Vision's Rectangle Detection and OCR on the selected region.

Install / Use

/learn @anupamchugh/VisionCreditScan
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

VisionCreditScan

Scan credit and other buisness cards using rectangle detection, followed by a perspective correction to handle distortion.

Finally, I've allowed the user to select the region of interest through gestures and extract the relevant information using Vision's Text Recognizer.

Doing so, not only makes it a secure way of extracting digits, but also allows us to step away from regular expressions for parsing texts. Regular Expressions are inefficient in scenarios, since there's not gurantee of the number of digits that'll be there on the card. For example AMEX cards don't have 16 digits.

Demo

alt-text

Article

Scanning Credit Cards Using Computer Vision in iOS

Related Skills

View on GitHub
GitHub Stars29
CategoryDevelopment
Updated29d ago
Forks3

Languages

Swift

Security Score

75/100

Audited on Mar 12, 2026

No findings