"""Auto-generated stub for module: postprocessor."""
from typing import Any, List

from .schemas import ActionPrediction, ClassificationPrediction, DetectionPrediction, FramewiseActionPredictions

# Functions
def classification_top1_from_raw_output(raw_output: Any) -> Any:
    """
    Normalize common runtime outputs and return top-1 prediction.
    
        Args:
            raw_output: Runtime-specific raw model output object.
            confidence_digits: Number of decimal places for confidence rounding.
    
        Returns:
            Classification prediction dictionary with category and confidence.
    """
    ...
def classification_top1_prediction(logits: Any.Any) -> Any:
    """
    Return top-1 class prediction with confidence from logits.
    
        Args:
            logits: Model logits tensor with shape ``[N, C]``.
            confidence_digits: Number of decimal places for confidence rounding.
    
        Returns:
            Classification prediction dictionary with category and confidence.
    """
    ...
def format_detection_from_normalized_tensors(labels: Any.Any, boxes_xyxy_normalized: Any.Any, scores: Any.Any) -> list[Any]:
    """
    Convert normalized detection tensors into API-ready records.
    
        Args:
            labels: Tensor of class ids for detections.
            boxes_xyxy_normalized: Normalized ``[N, 4]`` boxes in ``xyxy`` format.
            scores: Confidence tensor aligned with boxes.
            image_width: Source image width in pixels.
            image_height: Source image height in pixels.
            confidence_threshold: Minimum confidence required to keep a detection.
    
        Returns:
            List of detection prediction dictionaries.
    """
    ...
def framewise_action_results(inference_results: Any[Any[str, Any]]) -> Any:
    """
    Group frame-level action predictions keyed by frame index string.
    
        Args:
            inference_results: Iterable of per-event action inference records.
            fps: Frames-per-second used to convert timestamps to frame indices.
            confidence_digits: Number of decimal places for confidence rounding.
    
        Returns:
            Mapping of frame index string to action prediction list.
    """
    ...
