Skip to content

API Reference parrot_pipelines.planogram.identification.evidence

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

parrot_pipelines.planogram.identification.evidence

View source

Neutral, crop-tied rule evidence collected during identification (FEAT-612).

Alias APPEARANCE_UNDETERMINED

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

Class ChecklistCount

Counted instances of one checklist feature on a zone crop (-1: undeterminable).

Fields:

Field Type Default Description
feature str
count int -1

Alias CycleContext

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

Attribute EVIDENCE_PROMPT_VERSION

Type: str

Attribute EVIDENCE_STAGE

Type: str

Alias FixtureMembership

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

Alias ObservationSource

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

Alias PerceptionResult

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

Class RegionPresenceAnswer

Whether any display element occupies an inspected region crop.

Fields:

Field Type Default Description
present Literal['yes', 'no', 'unknown'] 'unknown'
raw_confidence float 0.0
evidence List[str]

Alias RuleObservation

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

Alias Shape

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

Alias VisionError

Re-exported from parrot_pipelines.planogram.identification.vision.VisionError.

Attribute ZONE_REGION_TARGET

Type: str

Alias ZoneAppearance

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

Class ZoneEvidenceAnswer

What the model sees on one observed zone crop.

Fields:

Field Type Default Description
illumination Literal['on', 'off', 'unknown'] 'unknown'
visual_features List[str]
appearance ZoneAppearance
raw_confidence float 0.0
evidence List[str]
checklist List[ChecklistCount]

Alias band_box

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

Alias banded_zones

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

Function build_region_prompt

Build a neutral prompt about whether a display element occupies a crop.

build_region_prompt() -> str

Returns: str

Function build_zone_prompt

Build a neutral prompt about facts visibly present in a zone crop.

build_zone_prompt(ask_illumination: bool, ask_features: bool, ask_appearance: bool = False, *, checklist: Sequence[str] = ()) -> str

Parameter Type Default Description
ask_illumination bool Ask for the illumination state.
ask_features bool Ask for free-text visual features.
ask_appearance bool False Ask for the closed-vocabulary appearance.
checklist Sequence[str] () Features configured by an opt-in visual_features checklist; each one is counted. Empty (the default) leaves the prompt exactly as without the argument.

Returns: str — The prompt text.

Function checklist_features

Checklist features of every visual_features binding, deduplicated in first-seen order.

checklist_features(bindings: Sequence[object]) -> List[str]

Parameter Type Default Description
bindings Sequence[object] The run's rule bindings.

Returns: List[str] — The features to count on each zone crop; empty when no binding declares a checklist.

Function collect_rule_evidence

Observe requested zone facts neutrally, isolating failed crops.

collect_rule_evidence(image: np.ndarray, perception: PerceptionResult, ctx: CycleContext) -> List[RuleObservation]

Parameter Type Default Description
image np.ndarray Untouched full-resolution BGR image.
perception PerceptionResult Stage-1 source-space observations for one image.
ctx CycleContext Per-run services, bindings, layout, and error sink.

Returns: List[RuleObservation] — Neutral observations ordered by observed zone, then configured region.

Alias crop_and_encode

Re-exported from parrot_pipelines.planogram.identification.verify.crop_and_encode.

Alias fixture_box

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

Attribute logger

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