Skip to content

API Reference parrot_pipelines.planogram.stages.perceive

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

parrot_pipelines.planogram.stages.perceive

View source

Stage 1: configured perception and the shared geometry tail reused by the fallback (FEAT-612).

Alias AnchorRule

Re-exported from parrot_pipelines.planogram.perception.slots.AnchorRule.

Alias CycleContext

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

Alias FixtureMembership

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

Alias GENERIC_DETECTION_PROMPT

Re-exported from parrot_pipelines.planogram.identification.detector.GENERIC_DETECTION_PROMPT.

Alias LayoutProfile

Re-exported from parrot_pipelines.planogram.layout.LayoutProfile.

Alias OUTSIDE_FIXTURE_EVIDENCE

Re-exported from parrot_pipelines.planogram.perception.bands.OUTSIDE_FIXTURE_EVIDENCE.

Alias ObservationSource

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

Alias PerceptionResult

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

Alias SELECTOR_EVIDENCE_PREFIX

Re-exported from parrot_pipelines.planogram.perception.bands.SELECTOR_EVIDENCE_PREFIX.

Alias Shape

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

Alias ShapeCandidate

Re-exported from parrot_pipelines.planogram.perception.profiles.ShapeCandidate.

Alias ShapeKind

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

Alias ShapeProfile

Re-exported from parrot_pipelines.planogram.perception.profiles.ShapeProfile.

Alias ZoneSelector

Re-exported from parrot_pipelines.planogram.layout.ZoneSelector.

Alias assign_bands

Re-exported from parrot_pipelines.planogram.perception.bands.assign_bands.

Alias assign_membership

Re-exported from parrot_pipelines.planogram.perception.membership.assign_membership.

Alias build_slots

Re-exported from parrot_pipelines.planogram.perception.slots.build_slots.

Alias candidate_shape_id

Re-exported from parrot_pipelines.planogram.perception.slots.candidate_shape_id.

Alias centre_bands

Re-exported from parrot_pipelines.planogram.perception.shelf_rows.centre_bands.

Function count_usable_targets

Count only on-fixture targets relevant to the anchor or zone strategy.

count_usable_targets(perception: PerceptionResult, profile: LayoutProfile) -> int

Parameter Type Default Description
perception PerceptionResult
profile LayoutProfile

Returns: int

Alias dedupe_anchors

Re-exported from parrot_pipelines.planogram.perception.shelf_rows.dedupe_anchors.

Alias detect_shelf_edges

Re-exported from parrot_pipelines.planogram.perception.rows.detect_shelf_edges.

Alias fit_rows

Re-exported from parrot_pipelines.planogram.perception.shelf_rows.fit_rows.

Alias group_rows

Re-exported from parrot_pipelines.planogram.perception.rows.group_rows.

Alias llm_detect_shapes

Re-exported from parrot_pipelines.planogram.identification.detector.llm_detect_shapes.

Attribute logger

Function perceive_image

Run configured perception only; automatic fallback remains orchestrator-owned.

perceive_image(image: Image.Image, image_id: str, ctx: CycleContext) -> PerceptionResult

Parameter Type Default Description
image Image.Image
image_id str
ctx CycleContext

Returns: PerceptionResult

Alias propose_shapes

Re-exported from parrot_pipelines.planogram.perception.shapes.propose_shapes.

Function rebuild_geometry

Rebuild rows, slots, zones and membership from replacement source-pixel shapes.

rebuild_geometry(image: Image.Image, shapes: Sequence[Shape], image_id: str, ctx: CycleContext, *, detection_source: str) -> PerceptionResult

Parameter Type Default Description
image Image.Image
shapes Sequence[Shape]
image_id str
ctx CycleContext
detection_source str

Returns: PerceptionResult

Alias usable_shapes

Re-exported from parrot_pipelines.planogram.perception.membership.usable_shapes.

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