Detection API¶
Factory function and interface for layout detectors.
Factory Function¶
Detector Protocol¶
from typing import Protocol
import numpy as np
from pipeline.types import Block
class Detector(Protocol):
def detect(self, image: np.ndarray) -> list[Block]:
"""Detect layout blocks in image."""
...
Full API Reference
Detailed API reference coming soon. See Detectors for available detectors.