Skip to content

Add receipt scanning with Tabscanner OCR#101

Merged
TobogganDev merged 2 commits into
mainfrom
ocr-provider-swap
Jul 20, 2026
Merged

Add receipt scanning with Tabscanner OCR#101
TobogganDev merged 2 commits into
mainfrom
ocr-provider-swap

Conversation

@TobogganDev

Copy link
Copy Markdown
Contributor

Summary

  • Implements the receipt-scan feature end-to-end: POST /receipt now returns the scanned data (was always null), fixes a crashing String.format bug, and raises the multipart upload limit (was capped at Spring's default 1MB).
  • Switches the OCR provider from Asprise (no self-serve signup, shared demo key with no usable quota) to Tabscanner (free tier, self-serve signup), mapped into the existing Receipt DTO so no mobile-side contract changes were needed.

Test plan

  • Verified POST /receipt returns a populated Receipt body for a real receipt photo, with correct merchant/total/date
  • Verified the low-confidence and insufficient-funds rejection paths still work
  • Verified the app boots cleanly with TABSCANNER_API_KEY unset (safe fallback, no crash)

@TobogganDev
TobogganDev merged commit 3b78f16 into main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants