Detectors ========= Text detection models. .. automodule:: manuscript.detectors :members: :undoc-members: :show-inheritance: .. rubric:: EAST: Training Notes The ``EAST`` detector in manuscript-ocr is based on the architecture proposed in `EAST: An Efficient and Accurate Scene Text Detector `_ (Zhou et al., CVPR 2017). The training procedure has been significantly reworked compared to the original: the loss weighting scheme, augmentation pipeline, quadrilateral annotation handling, and support for mixed annotations have all been modified. Pretrained weights were produced by the project authors. .. rubric:: EAST Training Quads EAST training expects quadrilateral targets. When loading COCO ``segmentation`` polygons, use ``augmentation_config["quad_source"]`` in ``EAST.train(...)`` to control how polygons are converted into 4-point training quads: - ``"auto"`` keeps existing 4-point polygons as-is and falls back to ``minAreaRect`` for longer polygons. - ``"as_is"`` accepts only 4-point polygons and skips polygons with a different number of vertices. - ``"min_area_rect"`` always fits the minimum-area rectangle and matches the legacy conversion path.