Anupalan

The ruler your label needs.

Metamorph 2.0Shipped September 13, 2026#general#ai#security
Repo
Anupalan banner

About

## Challenges we ran into

## Challenge 1 — A photo has no built-in sense of scale

The law requires an exact physical measurement (millimetres), but a phone photo has no inherent scale — a numeral that's actually 1.8mm tall and one that's 2.2mm tall can look identical depending on how close the phone is held. Our first instinct was to use the OCR engine's own bounding boxes as a stand-in for letter height, but that's a dead end: OCR polygons include ascenders, descenders and padding, so they don't correspond to the real printed glyph height the law is written around.

**Fix:** every photo must include a printed calibration marker of known physical size. We compute a homography from that marker to rectify the image onto a fixed pixels-per-millimetre plane — effectively turning the phone into a ruler — then measure the numerals themselves via connected-component analysis on the rectified crop, not OCR's box coordinates. We validated this accuracy question first, before building any other feature, since if it isn't reliable the entire premise falls apart.

## Challenge 2 — Keeping the verdict legally defensible, not just "AI says so"

It would have been far easier to let an LLM look at the label and say "pass" or "fail." We deliberately ruled this out. A verdict that came from a language model can't be reproduced identically a year later, can't be regression-tested, and can't be defended to an actual enforcement officer or in a dispute.

**Fix:** the LLM's only job is extracting field values from noisy OCR text and writing plain-language explanations. The actual verdict comes from a separate, deterministic rule engine reading a versioned rulebook file — the same inputs always produce the exact same output, and every finding is stamped with which version of the rulebook produced it.

## Challenge 3 — One codebase, two very different users

An enforcement officer doing a field inspection and a brand's packaging team pre-checking artwork have almost opposite needs: one needs a locked, tamper-evident evidence trail; the other needs editable remediation suggestions and bulk checking. Building two separate apps would have meant maintaining the compliance logic twice — the one thing that absolutely cannot drift between them.

**Fix:** mode became an attribute of the organisation, not a different codebase. Both modes run through the identical scan and rule-evaluation pipeline; only the surrounding features (evidence lock vs. remediation suggestions, bulk import, dashboards) change per mode.

## Challenge 4 — Respecting what we're legally allowed to serve

Full texts of Indian Standards are copyrighted and sold by BIS — we can't legally ingest and serve their content, which rules out the obvious "chatbot over all standards" approach most teams would default to.

**Fix:** the assistant's knowledge base is built only from public, non-priced material — gazette notifications, BIS's own product lists, and scheme/FAQ pages. When a question needs the actual technical content of a standard, it explicitly declines and points to BIS's official purchase route, rather than guessing. We're presenting that refusal as a deliberate design choice in the pitch, not a limitation we're hiding.

## The problem it solves

## The Problem It Solves

India's **Legal Metrology (Packaged Commodities) Rules, 2011** mandate strict, measurable declarations on every packaged product — MRP, net quantity, manufacturer details, consumer care info, month/year of manufacture, country of origin — each printed at a **minimum font size tied to net quantity**. On top of this, dozens of product categories fall under **BIS Quality Control Orders (QCOs)** requiring mandatory ISI certification before sale.

Today, enforcement of both is almost entirely manual, and that creates real pain on both sides of the law:

| Who | The problem today |

|---|---| | **Legal Metrology officers** | Inspect labels by eye, measure font height with a physical ruler, and cross-check ~12 scattered fields manually. Verdicts aren't reproducible, aren't tied to a specific rule version, and vary by inspector. | | **Brands & packaging designers** | No way to self-check a label *before* printing. A single missed field or a font 0.5mm short of the legal minimum can mean scrapping a full print run — or shipping units that later get seized. | | **Small/mid manufacturers & sellers** | Often don't know whether their product category even requires **BIS/ISI certification** — QCO applicability is buried across dozens of individual gazette notifications with no unified lookup. | | **Both sides** | No shared, versioned source of truth — an officer's finding and a manufacturer's self-check can't be proven to rest on the same legal text. |

Most non-compliance isn't fraud — it's designers and small manufacturers who never had an accessible way to translate dense legal text into a printable checklist.

### What Anupalan Does

A user photographs a package with a printed **scale marker** in frame. The system then:

  • **Rectifies** the image to a known millimetres-per-pixel scale using the marker — no marker, no metric claim.
  • **Reads the label** via OCR (PaddleOCR), then uses an LLM purely to **extract** structured fields (MRP, net quantity, MFD, etc.) — never to judge compliance.
  • **Measures real glyph heights in millimetres** using connected-component analysis on the rectified image (not OCR bounding boxes, which are unreliable for this).
  • **Evaluates a versioned, deterministic rule pack** against the extracted data, producing a citable verdict per rule.
  • **Checks BIS applicability** for the product category against a versioned lookup table.
  • **Answers questions in plain language** via an AI assistant ("Sahayak"), grounded in public BIS material.

Every verdict is one of four values — never collapsed into a binary pass/fail:

| Verdict | Meaning |

|---|---| | ✅ **PASS** | Field/measurement meets the rule | | ❌ **FAIL** | Clear violation, cited to the exact rule | | ⚠️ **BORDERLINE** | Close to the threshold — flagged for human review, not auto-failed | | ❓ **NOT_ASSESSABLE** | Can't be measured reliably (e.g., no marker, curved pack) — the system says so instead of guessing |

### Why It Matters

  • **For enforcement:** replaces a subjective ruler-and-notebook process with a reproducible report, tied to the exact rule pack version in force at scan time.
  • **For industry:** turns compliance from a legal-research problem into a **five-minute phone scan** — catching violations before a print run ships, not after a consignment is seized.
  • **By design**, the LLM never decides compliance and no millimetre is ever estimated without a physical marker — because a false FAIL against a compliant label, or a confidently wrong measurement, is worse than no answer at all.

*Anupalan is a pre-audit tool, not a certification — every report carries that disclaimer.*

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.