Skip to content

API Reference parrot_pipelines.planogram.perception.bands

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

parrot_pipelines.planogram.perception.bands

View source

Fixture-relative vertical bands: several observed zone fragments, one configured zone.

A zone detector rarely returns one box per physical panel: a header comes back as its logo, its headline and its side card, and a neighbouring fixture adds boxes of its own. A band selector (ZoneSelector.band) names the vertical slice of the fixture a zone occupies, so every fragment whose centre falls in that slice is evidence of the zone, and fragments beside the fixture are not.

Class BandSelector

The selector fields band matching reads (layout.ZoneSelector satisfies it).

Attributes:

Attribute Type Description
zone_id str
profile Optional[str]
kind Optional[str]
band Optional[Tuple[float, float]]

Attribute Box

Alias FixtureMembership

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

Attribute MIN_X_OVERLAP

Attribute OUTSIDE_FIXTURE_EVIDENCE

Attribute SELECTOR_EVIDENCE_PREFIX

Alias Shape

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

Function assign_bands

Assign observed zones to the band selectors of a layout.

assign_bands(zones: Sequence[Shape], selectors: Sequence[BandSelector]) -> Tuple[Dict[str, str], Set[str]]

Parameter Type Default Description
zones Sequence[Shape] Observed zones of one image.
selectors Sequence[BandSelector] Zone selectors; only those with a band take part.

Returns: Tuple[Dict[str, str], Set[str]] — (shape_id -> zone_id, shape ids beside the fixture). A zone whose centre falls in no band (or in a band whose selector rejects its profile or kind) is in neither.

Function band_box

Pixel box of one vertical band of the fixture, if non-degenerate.

band_box(fixture: Box, band: Tuple[float, float]) -> Optional[Box]

Parameter Type Default Description
fixture Box
band Tuple[float, float]

Returns: Optional[Box]

Function banded_zones

Observed zones already assigned to zone_id by a selector, top to bottom.

banded_zones(zones: Sequence[Shape], zone_id: str) -> List[Shape]

Parameter Type Default Description
zones Sequence[Shape]
zone_id str

Returns: List[Shape]

Function fixture_box

Bounding box of the fixture's zones, or None when nothing was observed.

fixture_box(zones: Sequence[Shape]) -> Optional[Box]

Parameter Type Default Description
zones Sequence[Shape]

Returns: Optional[Box]

Function fixture_members

The zones of the fixture: the x-overlapping group covering the largest area.

fixture_members(zones: Sequence[Shape]) -> List[Shape]

Parameter Type Default Description
zones Sequence[Shape] Observed zones of one image; off-fixture zones are ignored.

Returns: List[Shape] — The members of the dominant column, top to bottom; empty when no zone is usable.

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