Skip to content
All projects

Computer Vision · 2026

Nibbl AI

AI receipt intelligence for a cashback platform: it reads receipt photos and returns validated, structured data, and sends anything doubtful for review.

Nibbl AI screenshot
Role
AI Developer
Timeline
2026
Status
Working prototype
Domain
Cashback and rebates

The brief

What it is and why it was hard

Nibbl AI is a platform where brands fund rebate and review campaigns and shoppers earn rewards by uploading receipts. I built its AI receipt intelligence service. It turns a receipt image into structured, validated JSON that the backend can use for cashback and rebate processing: the merchant, items with quantities, prices, discounts and taxes, dates, currency, totals, payment method and masked card details. The service also writes AI-assisted product reviews and suggests questions for reviewers.

The problem

A basic OCR system can read text, but a real one has to decide whether what it read makes sense, on receipts that are blurry, inconsistent, multilingual and financially ambiguous.

What I did

I built a layered pipeline: OCR, normalisation, rule-based extraction, validation, confidence scoring, provenance, and an optional LLM fallback for fields the rules cannot settle.

The system

How the pieces fit together

  1. 1

    Quality check and cleanup

    Measures blur, brightness, contrast and skew, and preprocesses poor receipts before reading them.

  2. 2

    OCR

    Several engines behind one interface: Tesseract, PaddleOCR, PaddleOCR-VL and OpenAI-compatible vision models.

  3. 3

    Extraction

    Rules extract the merchant, items, dates, currency, totals and payment method first. An LLM is only a fallback for ambiguous fields, and it is off by default.

  4. 4

    Validation and review routing

    Subtotal, tax, payment and total are cross-checked, every field gets a confidence score, and doubtful receipts go to manual review.

Choices

Decisions that shaped it

Rules first, model second

The common path is deterministic, so it needs no model, costs nothing per receipt and cannot hallucinate. The LLM only steps in for ambiguous or low-confidence fields.

Never guess

A date like 08/09/26 is ambiguous, so it is not guessed. Anything missing stays null instead of being invented, and low-confidence results go to a person.

Redact what is sensitive

Card-like numbers are detected and redacted before the data goes anywhere.

Capabilities

What it does

  • Receipt photos turned into structured, validated JSON
  • Image quality analysis for blur, brightness, contrast and skew
  • Items, quantities, prices, discounts, taxes, dates, currency and totals
  • Payment method and masked card details, with card numbers redacted
  • Checks that subtotal, tax, payment and total agree
  • A confidence score for every field, with automatic manual-review routing
  • AI-assisted product review generation and reviewer-question suggestions
  • Health checks, metrics and a versioned API contract

Problems

What went wrong, and what fixed it

Problem

Receipts are blurry, inconsistent, multilingual and financially ambiguous, and OCR on its own cannot tell whether the result makes sense.

Fix

A layered pipeline: OCR, normalisation, rule-based extraction, validation, confidence scoring, provenance, and an optional LLM fallback.

Problem

OCR confuses 0, O, 1 and I, totals may not match the items and tax, and a wrong guess would pay out the wrong cashback.

Fix

Financial validation catches the mismatches, unclear fields stay null, and low-confidence results are routed to manual review instead of being accepted.

Stack

What it is built with

Reading receipts

  • Tesseract
  • PaddleOCR
  • PaddleOCR-VL
  • OpenAI-compatible vision

Service

  • Python
  • FastAPI
  • Docker
  • OpenAPI

In my words

The story behind it

Where it stands

The receipt pipeline is implemented and tested, and it runs as an API in a container built for deployment on the project's AWS setup. Review generation and question suggestions are built. Two endpoints are still planned and not finished: the adaptive conversational question endpoint and the AI review summary.

The result

The receipt pipeline is built and covered by 533 automated tests, which pass in 13.46 seconds. It runs as a containerised FastAPI service with a versioned API contract and OpenAPI documentation.

Next project

Finance AI

LLM Application

Finance AI preview

Have something like this to build?

I work on the AI layer: retrieval, reasoning and the code underneath. I hand it over ready to integrate.

© 2026 Md. Sakibur Rahman