Skip to content

API Reference parrot_pipelines.planogram.identification.spill

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_pipelines.planogram.identification.spill

View source

Post-identify guard against a neighbouring product spilling into an adjacent slot area.

Alias Identification

Re-exported from parrot_pipelines.planogram.contracts.Identification.

Attribute SPILL_EVIDENCE

Type: str

Alias Slot

Re-exported from parrot_pipelines.planogram.contracts.Slot.

Attribute logger

Function suppress_neighbour_spill

Mark brand-only slot readings that merely repeat an adjacent, better-read slot as uncertain.

Slot areas are bounded by the midpoints between price tags, so a wide or offset package over one tag often reaches into the neighbouring slot area: the model then reports that empty slot as occupied by the same brand without being able to read a product code. Such a reading is turned uncertain (never empty: emptiness is not proven) when an adjacent slot of the same row is occupied by the same brand, carries richer identity, and the suspect read nothing of its own.

suppress_neighbour_spill(identifications: Sequence[Identification], slots: Sequence[Slot]) -> List[Identification]

Parameter Type Default Description
identifications Sequence[Identification] Identifications of ONE image (slot ids as shape_id).
slots Sequence[Slot] The slots of that image.

Returns: List[Identification] — The identifications in their original order, suspects replaced by uncertain copies.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally