Super Scanner · algorithm field guide · 13 October 2026

What makes a scan stick?

One guide to the released candidate, the live experiments, and the ideas we have yet to prove. Each strategy answers a different question: where is the card, which card is it, or when should we accept it?

Release candidate · Two Strong RC1

Accept two convincing observations of the same card.

This is the main alpha's default for live scanning. The first strong match starts the count. A second consecutive strong match to the same product locks the top five results. A weak match, a missing card, or a competing outline breaks the early-confirmation streak.

Strong means: the best hash distance is at most 32 of 256 bits, and the next different product is at least 16 bits farther away. These are matching rules, not probabilities. Similar artwork can still need a human check of the printing.

ExampleFrame 1: Hangar Scrounger scores 18 bits; its rival scores 41. Frame 2: the same product scores 20; its rival scores 40. Both are strong → hold the matches on frame 2. A 28 versus 35 result has too little separation, so the normal five-frame hash consensus remains the fallback.

Shape inertia, current-frame verification, card-change detection, held results, and duplicate suppression still apply. This is an earlier confirmation rule, not a promise that every card will lock in two camera frames. Settings can select full consensus or change the fallback length.

Why two instead of three or one?

RuleClear-card lock on Pixel 6 ProTradeoff
Three strong354 msMore confirmation delay.
Two strong · RC250 msAbout 30% earlier here; rejects a single-frame glimpse.
One strong · optional research mode128 msFastest here, but can save a card that only passes briefly through view.
Ordinary five-frame consensus483 msThe fallback for ambiguous observations; combines rotation-aligned hash bits.

These are two-run averages for one clear saved scene in Chrome, not camera FPS. The 960-call phone comparison passed its paired checks; the larger 15,696-call development comparison added no wrong locks. The phone warmed into light thermal status. Water Energy and Etali still needed five observations. Development examples and family labels do not establish exact-printing accuracy.

Step through the confirmation idea

An illustration of initial acquisition. The real scanner also checks shape, motion, loss, and appearance changes.

The shared scanning pipeline

Camera frame→Card outline→Rectified crop→Four rotation hashes→Catalog search→Confirmation→Held top five
Foundation

Geometry + temporal inertia

Find plausible card quadrilaterals, reject impossible poses, refine borders, and smooth nearby outlines. A competing shape needs repeated support. Abrupt flips and smaller boxes inside the card should not immediately replace its outer border.

keep outer card

ExampleGlare makes the art box look stronger for one frame. The established outer outline keeps its place while the challenger is checked.

The skew slider changes the approximate pose limit; it is not a confidence slider.

Browser catalog path

Hash-guided shape choice

For weak geometry, compare a bounded set of candidate crops with the hash catalog. A clearly better identity match can help choose the physical card outline.

ExampleThe text block is a neat rectangle, but its crop matches no catalog card well. A slightly less tidy outer border produces a much better card match.

Endpoint mode and the P18 native engine keep their existing extraction paths; they still use the shared confirmation rule.

Browser catalog path

Motion tracking + fresh identity check

Follow an already found card between frames, then crop and hash its current pixels. Rejected verification triggers a fresh search; a finite discovery interval prevents tracking indefinitely.

ExampleA card slides across the table. Track its movement and verify the new crop rather than rediscovering every edge from scratch.
Matching & output

Local catalog or hash endpoint

Compare four rotated 256-bit hashes, rank results, and retain five different products. A downloaded catalog searches on-device. Endpoint mode sends hashes to the configured service. Once accepted, matches stay held until a real change is established.

ExampleA sideways card can match through its 90° hash. The UI saves its crop and five candidates, and skips another history entry for the same recognized product.

The six live experiment families

These are separate, frozen previews. Selecting one does not silently combine all six. Their “off” option refers to the older baseline used for that experiment. Two Strong is the only strategy promoted by this RC.

Experimental · comparison passed

1. Stationary-card verification

Use cheap tile or edge comparisons to detect a steady scene, so motion estimation can be skipped. Verify against a trusted reference and keep checking the current crop hash.

ExampleA card is motionless under a stand. Unchanged tiles and edges let the scanner avoid optical flow; replacing the card should fail the identity check.

Variants: strict tiles, lighting-normalized tiles, edges, or combined tiles + edges.

Try stationary verification
Experimental · comparison passed

2. Local card recovery

Look near the last known outline before searching the whole frame. Restore full-image coordinates and fall back when local recovery fails.

ExampleYour hand briefly hides a corner. The next search begins around the previous card location, with 30% extra space around it.

Variants: 15%, 30%, 50%, or motion-based padding.

Try local recovery
Experimental · comparison passed

3. Progressive resolution

Try a smaller detection image, refine on the full image, and use the ordinary search if the cheap proposal fails its hash or geometry checks.

ExampleA large, flat card may be found at 480 pixels. A tiny or heavily skewed card can trigger the normal-resolution fallback.

Variants: 320, 384, or 480 pixels, with strict hash or joint hash + geometry gates.

Try progressive resolution
Experimental · comparison passed

4. Adaptive discovery scheduling

Use tracking quality and hash changes to decide when a full-frame search is needed, while keeping a finite maximum interval.

ExampleA stable card can wait longer between full searches. A worsening hash match or uncertain movement triggers discovery sooner.

Variants: motion quality, hash trend, both, or both with a two-second cap.

Try adaptive discovery
Two Strong promoted · other modes experimental

5. Adaptive confirmation

Use fresh, well-separated matches to lock early, while retaining consensus for ambiguous observations. This changes when we accept a match, not how its hash is computed.

ExampleTwo Strong locks after A → A. Three Strong needs A → A → A. A → B restarts the streak. A missing runner-up prevents an early lock.

The preview also offers three observations spanning 200 ms, and a sequential score with a conservative minimum. One Strong was evaluated separately and is an explicit SDK research option.

Try Two Strong in its original preview
Experimental · regression found

6. Quality-weighted voting

Give sharper or less obscured frames more influence over hash-bit consensus, or use the best recent crop.

ExampleOne frame has glare across the art. Down-weight its vote relative to the clearer frames around it.

Variants: sharpness, glare, combined, or best crop. The combined default lost correct-family outputs in the development comparison, so it is not part of the RC.

Inspect quality voting

Further ideas in the experiment plan

These are proposed or unfinished research directions, not enabled by the RC. The examples illustrate the intended behavior.

Research direction

Joint geometry and identity ranking

Rank a small set of outlines using both border evidence and catalog separation, potentially with a fitted ranker.

ExampleA sleeve edge and the card edge both look plausible. Prefer the one supported by geometry and a convincing full-card identity, without counting candidate trials as extra frames.
Needs pinned reference images

Catalog-image feature alignment

Compare local visual features with shortlisted catalog images to estimate the full card outline under occlusion.

ExampleA thumb hides a corner, but several visible art features agree on a geometric transform to the catalog image.
Research direction

Regional hashes

Use separate fingerprints for the art, title, or border alongside the whole-card hash.

ExampleGlare spoils the lower text area, while the art and top border still agree on the same candidate.
Research direction

Family first, printing second

Find the card family quickly, then inspect details that distinguish its printings.

ExampleIdentify the card artwork first, then check the set symbol or collector number before selecting a particular printing.
Partly established on Android

Compact catalog + persistent cache

Keep a small search index and fetch bulky result metadata only when needed. A general binary browser index and persistent cache are further experiments.

ExampleThe P18 already searches all hashes in a compact catalog and loads metadata for the returned five. A future browser cache could also reduce startup cost.
Needs model and training data

Learned corner proposals

A small model could suggest four corners before the existing geometric and identity checks.

ExampleA low-contrast card on a busy mat is missed by edges. A model proposes its corners; the normal checks decide whether to accept them.

Using the RC in the POS or P18

Browser/POS: unpack the SDK into your application's own /scanner/ directory and serve it over HTTPS. Its modules, worker, and WASM files must remain together. The included config selects the verified public catalog; you can instead configure your own hash endpoint.

import { BrowserScanner, TWO_STRONG_RC } from '/scanner/scanner.js';

const scanner = new BrowserScanner();
const config = await (await fetch('/scanner/config.json')).json();
await scanner.configure(config);

async function scanFrame(imageData) {
  const result = await scanner.process(imageData, TWO_STRONG_RC);
  if (result.match_state?.new_lock) {
    // Present the top five in your POS and retain the extracted crop.
    window.dispatchEvent(new CustomEvent('cardscan', {
      detail: { matches: result.matches, cropRGBA: result.cropRGBA }
    }));
  }
  return result;
}
// Await each frame. Reset tracking when replacing the camera/source.
// scanner.resetTracking();  scanner.close();

The SDK produces recognition results; your POS owns camera capture, saved scans, corrections, and duplicate suppression. Still-image callers should use holdMatches:false and stabilize:false. Use confirmation:'off' for the ordinary consensus control.

Endpoint mode: early confirmation requires integer distances and canonical product IDs for the best match and a different-product runner-up. Without sufficient separation or a runner-up, consensus remains the fallback. Earlier per-frame lookups can increase endpoint traffic during acquisition.

P18: the RC APK uses the same Two Strong tracker and settings, with its existing Camera2/native extraction engine and bundled offline catalog. Installing an update with the same signing key preserves scan history. The browser's extra hash-guided extraction path is separate from the P18 native engine.

New experiment: recover sleeve borders

Optional alpha experiment · browser catalog

Search inside a weak crop before abandoning it.

A sleeve or top loader can supply the strongest outline while adding enough margin to spoil the card's hash. When ordinary candidates fail, try seven small border windows on at most three crops. Search the unchanged catalog and keep a correction only at distance 64 or better, with at least eight bits of improvement. A successful window is retried on fresh pixels first.

Submitted example: Flaaffy in a loaderThe RC finds no accepted result in the five-frame clip. The corrected crops score 56–60 bits and the prototype holds Flaaffy on frame five. Current border support and consecutive fresh matches let two loader-edge flickers contribute to the normal five-observation consensus.

Mew's artwork improves on four of five submitted frames, but the clip still does not lock and similar printings remain ambiguous. The Lindbergh and Karasu examples are unresolved. The 6,752-call development replay added no regression under its paired quality checks, but average real-clip processing rose from 142 to 238 ms on the desktop. Up to 21 extra searches can make weak scenes substantially slower; this is off by default. It is available in alpha Settings; the versioned POS RC1 SDK and P18 do not include it.

New experiment: search more plausible outlines

Optional alpha experiment · 3 / 4 / 8 candidates

Let catalog evidence choose a lower-ranked border.

Keep the primary outline plus up to two, three or seven distinct alternatives. An already accepted primary keeps its fast path. Otherwise rectify and hash each available candidate, requiring distance 64 or better and at least eight bits of improvement. Trying eight outlines still counts as one camera observation.

Submitted example: Mew exOn the fifth frame, the three-outline control's nearest result is unrelated at distance 86. The eight-outline search reaches candidate six and finds Mew ex at 54. Across the clip, four outlines plus sleeve recovery produce five usable family matches instead of four with three outlines plus recovery. Neither configuration holds Mew within the five frames: changing crops still interrupt appearance and outline consistency checks.

With sleeve recovery enabled, ordinary outlines are tried first. Trimming remains bounded to seven windows on the first three usable crops. Flaaffy still needs sleeve trimming; Lindbergh and Karasu remain unresolved. More candidates do not guarantee a better scan or the right printing. The selector is optional, defaults to three, and requires the rebuilt development WASM; the versioned POS RC1 SDK and P18 remain unchanged.