[PR #6720] [PM-34125] feat: Add card text analysis pipeline #12960

Closed
opened 2026-04-11 03:54:46 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/6720

State: closed
Merged: Yes


🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-34125

📔 Objective

Add the complete text analysis pipeline for credit card scanning:

  • CardNumberUtils: Shared Luhn validation and card number sanitization (ui module)
  • CardDataParser: Interface and regex-based implementation for extracting card details from OCR text (number, expiry, CVV)
  • CardTextAnalyzer: ML Kit Text Recognition integration for camera frame analysis
  • CardScanOverlay: Camera overlay composable for scan UI
  • CardScanData: Data class for parsed card fields
  • CardNumberUtils in app: Brand detection (detectCardBrand) using VaultCardBrand

Includes full test coverage for parser logic, Luhn validation, and sanitization.

**Original Pull Request:** https://github.com/bitwarden/android/pull/6720 **State:** closed **Merged:** Yes --- ## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-34125 ## 📔 Objective Add the complete text analysis pipeline for credit card scanning: - **CardNumberUtils**: Shared Luhn validation and card number sanitization (ui module) - **CardDataParser**: Interface and regex-based implementation for extracting card details from OCR text (number, expiry, CVV) - **CardTextAnalyzer**: ML Kit Text Recognition integration for camera frame analysis - **CardScanOverlay**: Camera overlay composable for scan UI - **CardScanData**: Data class for parsed card fields - **CardNumberUtils in app**: Brand detection (`detectCardBrand`) using `VaultCardBrand` Includes full test coverage for parser logic, Luhn validation, and sanitization.
GiteaMirror added the pull-request label 2026-04-11 03:54:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#12960