Skip to content

API Reference parrot_pipelines.planogram.identification.targets

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

parrot_pipelines.planogram.identification.targets

View source

Own-box local OCR of identification targets (FEAT-612, spec §2 Stage 2 / Module 3).

Alias CycleContext

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

Alias OcrReading

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

Attribute OcrTarget

Alias PerceptionResult

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

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.

Function crop_box

Clamp box to image bounds and return a contiguous crop copy.

crop_box(image: np.ndarray, box: Tuple[int, int, int, int]) -> np.ndarray

Parameter Type Default Description
image np.ndarray
box Tuple[int, int, int, int]

Returns: np.ndarray

Attribute logger

Function ocr_targets

Build a de-duplicated, deterministic list of requested OCR targets.

ocr_targets(perception: PerceptionResult, kinds: Sequence[str]) -> List[OcrTarget]

Parameter Type Default Description
perception PerceptionResult
kinds Sequence[str]

Returns: List[OcrTarget]

Alias read_crop

Re-exported from parrot_pipelines.planogram.perception.ocr.read_crop.

Function read_target_text

Read each configured target's own source-pixel box through the CPU pool.

read_target_text(image: np.ndarray, perception: PerceptionResult, ctx: CycleContext) -> Dict[str, OcrReading]

Parameter Type Default Description
image np.ndarray
perception PerceptionResult
ctx CycleContext

Returns: Dict[str, OcrReading]

Function target_id

Return the stable identifier for a slot or shape target.

target_id(target: OcrTarget) -> str

Parameter Type Default Description
target OcrTarget

Returns: str

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