Skip to content

API Reference parrot_pipelines.planogram.comparison.rules

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

parrot_pipelines.planogram.comparison.rules

View source

Evidence-only evaluation of bound planogram rules.

Alias APPEARANCE_UNDETERMINED

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

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 ObservationRef

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

Alias ObservationSource

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

Alias PerceptionResult

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

Alias RuleBinding

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

Alias RuleObservation

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

Alias RuleOutcome

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

Alias Shape

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

Alias ShapeKind

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

Alias Slot

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

Alias SlotsDefinition

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

Attribute ZONE_REGION_TARGET

Alias ZoneDefinition

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

Alias banded_zones

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

Function evaluate_rules

Evaluate every bound rule from collected evidence only.

evaluate_rules(perceptions: Sequence[PerceptionResult], identifications: Sequence[IdentificationResult], registrations: Sequence[ImageRegistration], ctx: CycleContext) -> Dict[str, RuleOutcome]

Parameter Type Default Description
perceptions Sequence[PerceptionResult]
identifications Sequence[IdentificationResult]
registrations Sequence[ImageRegistration]
ctx CycleContext

Returns: Dict[str, RuleOutcome]

Attribute logger

Function match_zone

Match one definition zone to at most one observed zone in one image.

match_zone(zone: ZoneDefinition, perception: PerceptionResult, definition: SlotsDefinition, selectors: Sequence[object]) -> Tuple[Optional[Shape], str]

Parameter Type Default Description
zone ZoneDefinition
perception PerceptionResult
definition SlotsDefinition
selectors Sequence[object]

Returns: Tuple[Optional[Shape], str]

Function normalize_text

Normalize OCR text using the ProductOnShelves comparison semantics.

normalize_text(text: str) -> str

Parameter Type Default Description
text str

Returns: str

Alias slot_above

Re-exported from parrot_pipelines.planogram.comparison.tags.slot_above.

Alias tag_price

Re-exported from parrot_pipelines.planogram.comparison.tags.tag_price.

Alias tag_text

Re-exported from parrot_pipelines.planogram.comparison.tags.tag_text.

Function visual_feature_match

Calculate visual-feature similarity using the ProductOnShelves semantics.

visual_feature_match(expected: Sequence[str], detected: Sequence[str]) -> float

Parameter Type Default Description
expected Sequence[str]
detected Sequence[str]

Returns: float

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