Requirements
What it is
Clarify:
- goal: the customer adds the product they photographed, in a few seconds;
- inputs: phone photos: badly lit, angled, partly hidden, often of used or empty packs;
- catalogue: 50,000 products per city with 4 clean studio images each; new products weekly; packaging redesigns;
- latency: results within about a second end to end, including upload;
- output: the exact product first if found; otherwise the closest alternatives in stock (same brand, similar product).
Why it matters
The core difficulty is the domain gap: catalogue photos are clean and front-on; customer photos are not.
- A model trained only on catalogue images matches studio photos to studio photos and struggles with a crumpled pack on a kitchen counter.
- 'Exact product' versus 'similar product' are different tasks; the design must handle both.
In the real world: Pinterest Lens, Google Lens and Amazon's camera search all describe the gap between catalogue and real-world photos as their central problem.
Testing on catalogue images. Matching a catalogue photo to itself is easy; the real test is a phone photo.