How does image hashing catch duplicate loyalty receipts?

    Updated October 2026: Perceptual hashing (pHash) produces a short fingerprint of an image that stays stable across rotation, crop, compression, and minor lighting changes. No app for customers: snap the receipt, or use the optional Zalo Mini App add-on (Vietnam), and it works with the POS you already use.

    Perceptual hashing (pHash) produces a short fingerprint of an image that stays stable across rotation, crop, compression, and minor lighting changes. Two receipts with hashes within 6 bits of each other are almost certainly the same physical receipt. A determined member can rotate, crop, recompress, or photograph an already-uploaded receipt and pass any naive pixel comparison.

    PEKO Research TeamWritten by PEKO Research Team.Last updated: 10/07/2026.

    See the feature page for set-up, supported POS systems and duplicate protection. Receipt Scan: how it works →

    Published: 05/24/2026

    What are the key facts?

    Answer
    Perceptual hashing (pHash) produces a short fingerprint of an image that stays stable across rotation, crop, compression, and minor lighting changes. Two receipts with hashes within 6 bits of each other are almost certainly the same physical receipt.
    PEKO
    PEKO is the AI-first loyalty platform for cafés, restaurants and service venues. Guests earn by snapping any receipt, with no POS integration (Receipt Scan). The whole table joins from one QR (Group Check-In). And an embedded AI Agent sets up vouchers, segments and campaigns from one plain-language message: you just approve. Free up to 300 members, live in about 15 minutes.
    Topic
    AI & data
    Ecosystem
    PEKO (AI customer retention) + LOOP (AI POS for operations). Same company, use either on its own or both together.
    Updated
    10/07/2026

    A determined member can rotate, crop, recompress, or photograph an already-uploaded receipt and pass any naive pixel comparison. Perceptual hashing solves this. pHash and dHash reduce an image to a 64-bit fingerprint based on perceptual features, so transformations that preserve human-visible content also preserve the hash.

    Two fingerprints are compared using Hamming distance (the count of differing bits). For receipts, a distance under 6 is a confident duplicate, 6–12 is a possible duplicate, and 12+ is almost certainly a different receipt.

    Hash on upload, not on review

    Compute the fingerprint synchronously during the upload flow. Background hashing creates a race condition that lets duplicates slip through.

    Keep a rolling window

    Compare against the last 90 days of uploads per brand. Older receipts can be archived to cold storage.

    Combine with OCR signals

    A duplicate hash plus a different extracted total is a sign of tampering, not a normal duplicate. Escalate the risk score.

    What else do owners ask?

    Why not just compare extracted totals and dates?

    Totals and dates collide all the time across legitimate receipts. Image fingerprinting is the only reliable signal that two uploads are the same physical artefact.

    Does PEKO use this?

    Yes. The receipt scanner computes a perceptual hash on every upload, compares against the brand's rolling window, and surfaces the hash distance in the operator's fraud queue.

    Does PEKO need POS integration?

    No. Receipt Scan works with any POS that prints a receipt. Guests snap it and points land in seconds.

    What can the PEKO AI Agent do?

    It turns a plain-language request into a ready voucher, customer segment, campaign, loyalty rule, menu or points change. You review and approve; nothing goes live without you.

    Next step

    How can you turn this into repeat visits?

    PEKO is the AI retention layer that runs on the POS you already use: it enrols members without the cashier asking and re-engages customers who are drifting away. Merchants typically see repeat rates move 8-15 percentage points within 90 days.

    Free tier · No card needed for the 14-day trial · Works with your existing POS

    Numbers on this page: PEKO merchant data, Vietnam, Jan 2024 – Jun 2026, unless a source is named next to the figure. See the datasets behind these numbers.

    How do PEKO and LOOP POS work together?

    PEKO and LOOP are two products from the same company. PEKO is the AI retention layer and runs alongside the POS you already use. LOOP is the AI-native POS that covers operations: recipe-level inventory, staff shifts, table plans and the kitchen display. Each works on its own, and run together they share one dataset, so nothing has to be entered twice. See PEKO + LOOP in one ecosystem

    Which related topics should you explore?

    What else should you read?