Skip to content

API Reference parrot_pipelines.planogram.stages.compare

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

parrot_pipelines.planogram.stages.compare

View source

Shared deterministic comparison stage for planogram observations.

Alias ComparisonResult

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

Alias CycleContext

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

Alias FixtureMembership

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

Alias Identification

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

Alias IdentificationResult

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

Alias ImageRegistration

Re-exported from parrot_pipelines.planogram.comparison.registration.ImageRegistration.

Alias PerceptionResult

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

Attribute REFERENCE_EVIDENCE_PREFIX

Attribute SURPLUS_EVIDENCE

Alias Shape

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

Alias Slot

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

Alias SlotsDefinition

Re-exported from parrot_pipelines.planogram.comparison.definition.SlotsDefinition.

Attribute TEXT_EVIDENCE_PREFIX

Alias build_slot_presence

Re-exported from parrot_pipelines.planogram.comparison.presence.build_slot_presence.

Function canonicalise

Canonicalize a read to one catalogue id, or retain unresolved candidates.

Printed text decides first; a matched reference image decides only what the text left open.

canonicalise(identification: Identification, definition: SlotsDefinition, ctx: CycleContext) -> Identification

Parameter Type Default Description
identification Identification
definition SlotsDefinition
ctx CycleContext

Returns: Identification

Function compare_observations

Canonicalize, register, merge, evaluate, score, summarize, and project observations.

compare_observations(perceptions: Sequence[PerceptionResult], identifications: Sequence[IdentificationResult], ctx: CycleContext, description: PlanogramDescription) -> ComparisonResult

Parameter Type Default Description
perceptions Sequence[PerceptionResult]
identifications Sequence[IdentificationResult]
ctx CycleContext
description PlanogramDescription

Returns: ComparisonResult

Alias effective_reporting

Re-exported from parrot_pipelines.planogram.comparison.definition.effective_reporting.

Alias evaluate_rules

Re-exported from parrot_pipelines.planogram.comparison.rules.evaluate_rules.

Alias finalize_comparison

Re-exported from parrot_pipelines.planogram.comparison.projection.finalize_comparison.

Attribute logger

Alias merge_positions

Re-exported from parrot_pipelines.planogram.comparison.scoring.merge_positions.

Alias names_product

Re-exported from parrot_pipelines.planogram.comparison.identity.names_product.

Alias project_compliance

Re-exported from parrot_pipelines.planogram.comparison.projection.project_compliance.

Alias register_image

Re-exported from parrot_pipelines.planogram.comparison.registration.register_image.

Function registrable_slots

Return on-fixture slots in rows carrying reliable evidence.

registrable_slots(perception: PerceptionResult, added: Sequence[Shape], idents: Sequence[Identification], ctx: CycleContext) -> List[Slot]

Parameter Type Default Description
perception PerceptionResult
added Sequence[Shape]
idents Sequence[Identification]
ctx CycleContext

Returns: List[Slot]

Alias resolve_identity

Re-exported from parrot_pipelines.planogram.comparison.identity.resolve_identity.

Alias score_shelves

Re-exported from parrot_pipelines.planogram.comparison.scoring.score_shelves.

Alias summarize

Re-exported from parrot_pipelines.planogram.comparison.scoring.summarize.

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