SYMBOL INDEX (387 symbols across 76 files) FILE: demo/app.py class spaces (line 10) | class spaces: # noqa: N801 method GPU (line 12) | def GPU(func): # noqa: N802 function load_predictor (line 59) | def load_predictor( function forward_image (line 119) | def forward_image(predictor: OCRPredictor, image: np.ndarray) -> np.ndar... function matplotlib_to_pil (line 138) | def matplotlib_to_pil(fig: Figure | np.ndarray) -> Image.Image: function analyze_page (line 159) | def analyze_page( FILE: onnxtr/contrib/artefacts.py class ArtefactDetector (line 26) | class ArtefactDetector(_BasePredictor): method __init__ (line 48) | def __init__( method preprocess (line 65) | def preprocess(self, img: np.ndarray) -> np.ndarray: method postprocess (line 68) | def postprocess(self, output: list[np.ndarray], input_images: list[lis... method show (line 106) | def show(self, **kwargs: Any) -> None: FILE: onnxtr/contrib/base.py class _BasePredictor (line 14) | class _BasePredictor: method __init__ (line 25) | def __init__(self, batch_size: int, url: str | None = None, model_path... method _init_model (line 32) | def _init_model(self, url: str | None = None, model_path: str | None =... method preprocess (line 49) | def preprocess(self, img: np.ndarray) -> np.ndarray: method postprocess (line 61) | def postprocess(self, output: list[np.ndarray], input_images: list[lis... method __call__ (line 74) | def __call__(self, inputs: list[np.ndarray]) -> Any: FILE: onnxtr/file_utils.py function requires_package (line 15) | def requires_package(name: str, extra_message: str | None = None) -> Non... FILE: onnxtr/io/elements.py class Element (line 32) | class Element(NestedObject): method __init__ (line 38) | def __init__(self, **kwargs: Any) -> None: method export (line 45) | def export(self) -> dict[str, Any]: method from_dict (line 54) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): method render (line 57) | def render(self) -> str: class Word (line 61) | class Word(Element): method __init__ (line 76) | def __init__( method render (line 91) | def render(self) -> str: method extra_repr (line 95) | def extra_repr(self) -> str: method from_dict (line 99) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): class Artefact (line 104) | class Artefact(Element): method __init__ (line 117) | def __init__(self, artefact_type: str, confidence: float, geometry: Bo... method render (line 123) | def render(self) -> str: method extra_repr (line 127) | def extra_repr(self) -> str: method from_dict (line 131) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): class Line (line 136) | class Line(Element): method __init__ (line 150) | def __init__( method render (line 169) | def render(self) -> str: method from_dict (line 174) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): class Block (line 182) | class Block(Element): method __init__ (line 198) | def __init__( method render (line 221) | def render(self, line_break: str = "\n") -> str: method from_dict (line 226) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): class Page (line 235) | class Page(Element): method __init__ (line 251) | def __init__( method render (line 267) | def render(self, block_break: str = "\n\n") -> str: method extra_repr (line 271) | def extra_repr(self) -> str: method show (line 274) | def show(self, interactive: bool = True, preserve_aspect_ratio: bool =... method synthesize (line 289) | def synthesize(self, **kwargs) -> np.ndarray: method export_as_xml (line 300) | def export_as_xml(self, file_title: str = "OnnxTR - XML export (hOCR)"... method from_dict (line 405) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): class Document (line 411) | class Document(Element): method __init__ (line 421) | def __init__( method render (line 427) | def render(self, page_break: str = "\n\n\n\n") -> str: method show (line 431) | def show(self, **kwargs) -> None: method synthesize (line 436) | def synthesize(self, **kwargs) -> list[np.ndarray]: method export_as_xml (line 447) | def export_as_xml(self, **kwargs) -> list[tuple[bytes, ET.ElementTree]]: method from_dict (line 459) | def from_dict(cls, save_dict: dict[str, Any], **kwargs): FILE: onnxtr/io/html.py function read_html (line 11) | def read_html(url: str, **kwargs: Any) -> bytes: FILE: onnxtr/io/image.py function read_img_as_numpy (line 16) | def read_img_as_numpy( FILE: onnxtr/io/pdf.py function read_pdf (line 16) | def read_pdf( FILE: onnxtr/io/reader.py class DocumentFile (line 21) | class DocumentFile: method from_pdf (line 25) | def from_pdf(cls, file: AbstractFile, **kwargs) -> list[np.ndarray]: method from_url (line 41) | def from_url(cls, url: str, **kwargs) -> list[np.ndarray]: method from_images (line 63) | def from_images(cls, files: Sequence[AbstractFile] | AbstractFile, **k... FILE: onnxtr/models/_utils.py function get_max_width_length_ratio (line 18) | def get_max_width_length_ratio(contour: np.ndarray) -> float: function estimate_orientation (line 33) | def estimate_orientation( function rectify_crops (line 154) | def rectify_crops( function rectify_loc_preds (line 173) | def rectify_loc_preds( function get_language (line 193) | def get_language(text: str) -> tuple[str, float]: FILE: onnxtr/models/builder.py class DocumentBuilder (line 19) | class DocumentBuilder(NestedObject): method __init__ (line 30) | def __init__( method _sort_boxes (line 43) | def _sort_boxes(boxes: np.ndarray) -> tuple[np.ndarray, np.ndarray]: method _resolve_sub_lines (line 65) | def _resolve_sub_lines(self, boxes: np.ndarray, word_idcs: list[int]) ... method _resolve_lines (line 103) | def _resolve_lines(self, boxes: np.ndarray) -> list[list[int]]: method _resolve_blocks (line 149) | def _resolve_blocks(boxes: np.ndarray, lines: list[list[int]]) -> list... method _build_blocks (line 214) | def _build_blocks( method extra_repr (line 278) | def extra_repr(self) -> str: method __call__ (line 285) | def __call__( FILE: onnxtr/models/classification/models/mobilenet.py class MobileNetV3 (line 41) | class MobileNetV3(Engine): method __init__ (line 51) | def __init__( method __call__ (line 62) | def __call__( function _mobilenet_v3 (line 69) | def _mobilenet_v3( function mobilenet_v3_small_crop_orientation (line 82) | def mobilenet_v3_small_crop_orientation( function mobilenet_v3_small_page_orientation (line 110) | def mobilenet_v3_small_page_orientation( FILE: onnxtr/models/classification/predictor/base.py class OrientationPredictor (line 17) | class OrientationPredictor(NestedObject): method __init__ (line 29) | def __init__( method __call__ (line 37) | def __call__( FILE: onnxtr/models/classification/zoo.py function _orientation_predictor (line 19) | def _orientation_predictor( function crop_orientation_predictor (line 52) | def crop_orientation_predictor( function page_orientation_predictor (line 88) | def page_orientation_predictor( FILE: onnxtr/models/detection/_utils/base.py function _remove_padding (line 12) | def _remove_padding( FILE: onnxtr/models/detection/core.py class DetectionPostProcessor (line 15) | class DetectionPostProcessor(NestedObject): method __init__ (line 24) | def __init__(self, box_thresh: float = 0.5, bin_thresh: float = 0.5, a... method extra_repr (line 30) | def extra_repr(self) -> str: method box_score (line 34) | def box_score(pred: np.ndarray, points: np.ndarray, assume_straight_pa... method bitmap_to_boxes (line 60) | def bitmap_to_boxes( method __call__ (line 67) | def __call__( FILE: onnxtr/models/detection/models/differentiable_binarization.py class DBNet (line 42) | class DBNet(Engine): method __init__ (line 55) | def __init__( method __call__ (line 74) | def __call__( function _dbnet (line 93) | def _dbnet( function db_resnet34 (line 106) | def db_resnet34( function db_resnet50 (line 133) | def db_resnet50( function db_mobilenet_v3_large (line 160) | def db_mobilenet_v3_large( FILE: onnxtr/models/detection/models/fast.py class FAST (line 40) | class FAST(Engine): method __init__ (line 53) | def __init__( method __call__ (line 72) | def __call__( function _fast (line 91) | def _fast( function fast_tiny (line 104) | def fast_tiny( function fast_small (line 131) | def fast_small( function fast_base (line 158) | def fast_base( FILE: onnxtr/models/detection/models/linknet.py class LinkNet (line 42) | class LinkNet(Engine): method __init__ (line 55) | def __init__( method __call__ (line 74) | def __call__( function _linknet (line 93) | def _linknet( function linknet_resnet18 (line 106) | def linknet_resnet18( function linknet_resnet34 (line 133) | def linknet_resnet34( function linknet_resnet50 (line 160) | def linknet_resnet50( FILE: onnxtr/models/detection/postprocessor/base.py class GeneralDetectionPostProcessor (line 20) | class GeneralDetectionPostProcessor(DetectionPostProcessor): method __init__ (line 29) | def __init__( method polygon_to_box (line 38) | def polygon_to_box( method bitmap_to_boxes (line 83) | def bitmap_to_boxes( FILE: onnxtr/models/detection/predictor/base.py class DetectionPredictor (line 17) | class DetectionPredictor(NestedObject): method __init__ (line 27) | def __init__( method __call__ (line 35) | def __call__( FILE: onnxtr/models/detection/zoo.py function _predictor (line 28) | def _predictor( function detection_predictor (line 60) | def detection_predictor( FILE: onnxtr/models/engine.py class EngineConfig (line 33) | class EngineConfig: method __init__ (line 41) | def __init__( method _init_providers (line 51) | def _init_providers(self) -> list[tuple[str, dict[str, Any]]]: method _init_sess_opts (line 72) | def _init_sess_opts(self) -> SessionOptions: method providers (line 82) | def providers(self) -> list[tuple[str, dict[str, Any]]] | list[str]: method session_options (line 86) | def session_options(self) -> SessionOptions: method __repr__ (line 89) | def __repr__(self) -> str: class Engine (line 93) | class Engine: method __init__ (line 102) | def __init__(self, url: str, engine_cfg: EngineConfig | None = None, *... method run (line 120) | def run(self, inputs: np.ndarray) -> np.ndarray: FILE: onnxtr/models/factory/hub.py function login_to_hub (line 37) | def login_to_hub() -> None: # pragma: no cover function _save_model_and_config_for_hf_hub (line 56) | def _save_model_and_config_for_hf_hub(model: Any, save_dir: str, arch: s... function push_to_hf_hub (line 79) | def push_to_hf_hub( function from_hub (line 185) | def from_hub(repo_id: str, engine_cfg: EngineConfig | None = None, **kwa... FILE: onnxtr/models/predictor/base.py class _OCRPredictor (line 24) | class _OCRPredictor: method __init__ (line 45) | def __init__( method _general_page_orientations (line 79) | def _general_page_orientations( method _get_orientations (line 92) | def _get_orientations( method _straighten_pages (line 102) | def _straighten_pages( method _generate_crops (line 127) | def _generate_crops( method _prepare_crops (line 147) | def _prepare_crops( method _rectify_crops (line 166) | def _rectify_crops( method _process_predictions (line 187) | def _process_predictions( method add_hook (line 204) | def add_hook(self, hook: Callable) -> None: method list_archs (line 212) | def list_archs(self) -> dict[str, list[str]]: FILE: onnxtr/models/predictor/predictor.py class OCRPredictor (line 23) | class OCRPredictor(NestedObject, _OCRPredictor): method __init__ (line 44) | def __init__( method __call__ (line 72) | def __call__( FILE: onnxtr/models/preprocessor/base.py class PreProcessor (line 19) | class PreProcessor(NestedObject): method __init__ (line 32) | def __init__( method batch_inputs (line 44) | def batch_inputs(self, samples: list[np.ndarray]) -> list[np.ndarray]: method sample_transforms (line 61) | def sample_transforms(self, x: np.ndarray) -> np.ndarray: method __call__ (line 77) | def __call__(self, x: np.ndarray | list[np.ndarray]) -> list[np.ndarray]: FILE: onnxtr/models/recognition/core.py class RecognitionPostProcessor (line 12) | class RecognitionPostProcessor(NestedObject): method __init__ (line 19) | def __init__( method extra_repr (line 26) | def extra_repr(self) -> str: FILE: onnxtr/models/recognition/models/crnn.py class CRNNPostProcessor (line 48) | class CRNNPostProcessor(RecognitionPostProcessor): method __init__ (line 55) | def __init__(self, vocab): method decode_sequence (line 58) | def decode_sequence(self, sequence, vocab): method ctc_best_path (line 61) | def ctc_best_path( method __call__ (line 89) | def __call__(self, logits): class CRNN (line 104) | class CRNN(Engine): method __init__ (line 117) | def __init__( method __call__ (line 132) | def __call__( function _crnn (line 149) | def _crnn( function crnn_vgg16_bn (line 168) | def crnn_vgg16_bn( function crnn_mobilenet_v3_small (line 195) | def crnn_mobilenet_v3_small( function crnn_mobilenet_v3_large (line 222) | def crnn_mobilenet_v3_large( FILE: onnxtr/models/recognition/models/master.py class MASTER (line 32) | class MASTER(Engine): method __init__ (line 43) | def __init__( method __call__ (line 58) | def __call__( class MASTERPostProcessor (line 83) | class MASTERPostProcessor(RecognitionPostProcessor): method __init__ (line 90) | def __init__( method __call__ (line 97) | def __call__(self, logits: np.ndarray) -> list[tuple[str, float]]: function _master (line 112) | def _master( function master (line 131) | def master( FILE: onnxtr/models/recognition/models/parseq.py class PARSeq (line 31) | class PARSeq(Engine): method __init__ (line 42) | def __init__( method __call__ (line 57) | def __call__( class PARSeqPostProcessor (line 72) | class PARSeqPostProcessor(RecognitionPostProcessor): method __init__ (line 79) | def __init__( method __call__ (line 86) | def __call__(self, logits): function _parseq (line 103) | def _parseq( function parseq (line 123) | def parseq( FILE: onnxtr/models/recognition/models/sar.py class SAR (line 31) | class SAR(Engine): method __init__ (line 42) | def __init__( method __call__ (line 57) | def __call__( class SARPostProcessor (line 73) | class SARPostProcessor(RecognitionPostProcessor): method __init__ (line 80) | def __init__( method __call__ (line 87) | def __call__(self, logits): function _sar (line 102) | def _sar( function sar_resnet31 (line 122) | def sar_resnet31( FILE: onnxtr/models/recognition/models/viptr.py class VIPTRPostProcessor (line 33) | class VIPTRPostProcessor(RecognitionPostProcessor): method __init__ (line 40) | def __init__(self, vocab): method decode_sequence (line 43) | def decode_sequence(self, sequence, vocab): method ctc_best_path (line 46) | def ctc_best_path( method __call__ (line 74) | def __call__(self, logits): class VIPTR (line 89) | class VIPTR(Engine): method __init__ (line 102) | def __init__( method __call__ (line 117) | def __call__( function _viptr (line 134) | def _viptr( function viptr_tiny (line 155) | def viptr_tiny( FILE: onnxtr/models/recognition/models/vitstr.py class ViTSTR (line 39) | class ViTSTR(Engine): method __init__ (line 50) | def __init__( method __call__ (line 65) | def __call__( class ViTSTRPostProcessor (line 81) | class ViTSTRPostProcessor(RecognitionPostProcessor): method __init__ (line 88) | def __init__( method __call__ (line 95) | def __call__(self, logits): function _vitstr (line 112) | def _vitstr( function vitstr_small (line 132) | def vitstr_small( function vitstr_base (line 159) | def vitstr_base( FILE: onnxtr/models/recognition/predictor/_utils.py function split_crops (line 16) | def split_crops( function _split_horizontally (line 73) | def _split_horizontally( function remap_preds (line 119) | def remap_preds( FILE: onnxtr/models/recognition/predictor/base.py class RecognitionPredictor (line 19) | class RecognitionPredictor(NestedObject): method __init__ (line 28) | def __init__( method __call__ (line 42) | def __call__( FILE: onnxtr/models/recognition/utils.py function merge_strings (line 12) | def merge_strings(a: str, b: str, overlap_ratio: float) -> str: function merge_multi_strings (line 69) | def merge_multi_strings(seq_list: list[str], overlap_ratio: float, last_... FILE: onnxtr/models/recognition/zoo.py function _predictor (line 29) | def _predictor( function recognition_predictor (line 61) | def recognition_predictor( FILE: onnxtr/models/zoo.py function _predictor (line 16) | def _predictor( function ocr_predictor (line 66) | def ocr_predictor( FILE: onnxtr/transforms/base.py class Resize (line 15) | class Resize: method __init__ (line 25) | def __init__( method __call__ (line 41) | def __call__(self, img: np.ndarray) -> np.ndarray: method __repr__ (line 88) | def __repr__(self) -> str: class Normalize (line 96) | class Normalize: method __init__ (line 104) | def __init__( method __call__ (line 117) | def __call__( method __repr__ (line 124) | def __repr__(self) -> str: FILE: onnxtr/utils/data.py function _urlretrieve (line 26) | def _urlretrieve(url: str, filename: Path | str, chunk_size: int = 1024)... function _check_integrity (line 37) | def _check_integrity(file_path: str | Path, hash_prefix: str) -> bool: function download_from_url (line 44) | def download_from_url( FILE: onnxtr/utils/fonts.py function get_font (line 14) | def get_font(font_family: str | None = None, font_size: int = 13) -> Ima... FILE: onnxtr/utils/geometry.py function bbox_to_polygon (line 33) | def bbox_to_polygon(bbox: BoundingBox) -> Polygon4P: function polygon_to_bbox (line 45) | def polygon_to_bbox(polygon: Polygon4P) -> BoundingBox: function order_points (line 58) | def order_points(pts: np.ndarray) -> np.ndarray: function detach_scores (line 108) | def detach_scores(boxes: list[np.ndarray]) -> tuple[list[np.ndarray], li... function shape_translate (line 128) | def shape_translate(data: np.ndarray, format: str) -> np.ndarray: function resolve_enclosing_bbox (line 167) | def resolve_enclosing_bbox(bboxes: list[BoundingBox] | np.ndarray) -> Bo... function resolve_enclosing_rbbox (line 189) | def resolve_enclosing_rbbox(rbboxes: list[np.ndarray], intermed_size: in... function rotate_abs_points (line 210) | def rotate_abs_points(points: np.ndarray, angle: float = 0.0) -> np.ndar... function compute_expanded_shape (line 227) | def compute_expanded_shape(img_shape: tuple[int, int], angle: float) -> ... function rotate_abs_geoms (line 248) | def rotate_abs_geoms( function remap_boxes (line 289) | def remap_boxes(loc_preds: np.ndarray, orig_shape: tuple[int, int], dest... function rotate_boxes (line 315) | def rotate_boxes( function rotate_image (line 372) | def rotate_image( function remove_image_padding (line 421) | def remove_image_padding(image: np.ndarray) -> np.ndarray: function estimate_page_angle (line 439) | def estimate_page_angle(polys: np.ndarray) -> float: function convert_to_relative_coords (line 457) | def convert_to_relative_coords(geoms: np.ndarray, img_shape: tuple[int, ... function extract_crops (line 482) | def extract_crops(img: np.ndarray, boxes: np.ndarray, channels_last: boo... function extract_rcrops (line 514) | def extract_rcrops( FILE: onnxtr/utils/multithreading.py function multithread_exec (line 18) | def multithread_exec(func: Callable[[Any], Any], seq: Iterable[Any], thr... FILE: onnxtr/utils/reconstitution.py function _warn_rotation (line 21) | def _warn_rotation(entry: dict[str, Any]) -> None: # pragma: no cover function _synthesize (line 28) | def _synthesize( function synthesize_page (line 113) | def synthesize_page( FILE: onnxtr/utils/repr.py function _addindent (line 12) | def _addindent(s_, num_spaces): class NestedObject (line 24) | class NestedObject: method extra_repr (line 29) | def extra_repr(self) -> str: method __repr__ (line 32) | def __repr__(self): FILE: onnxtr/utils/visualization.py function rect_patch (line 20) | def rect_patch( function polygon_patch (line 69) | def polygon_patch( function create_obj_patch (line 112) | def create_obj_patch( function visualize_page (line 137) | def visualize_page( function draw_boxes (line 261) | def draw_boxes(boxes: np.ndarray, image: np.ndarray, color: tuple[int, i... FILE: scripts/convert_to_float16.py function _load_model (line 34) | def _load_model(arch: str, model_path: str | None = None) -> Any: function _latency_check (line 46) | def _latency_check(args: Any, size: tuple[int], model: Any, img_tensor: ... function _validate (line 64) | def _validate(fp32_in: list[np.ndarray], fp16_in: list[np.ndarray]) -> b... function main (line 75) | def main(args): FILE: scripts/evaluate.py function _pct (line 27) | def _pct(val): function main (line 31) | def main(args): function parse_args (line 233) | def parse_args(): FILE: scripts/latency.py function main (line 17) | def main(args): FILE: scripts/quantize.py class TaskShapes (line 15) | class TaskShapes(Enum): class CalibrationDataLoader (line 24) | class CalibrationDataLoader(CalibrationDataReader): method __init__ (line 25) | def __init__(self, calibration_image_folder: str, model_path: str, tas... method get_next (line 39) | def get_next(self): method rewind (line 46) | def rewind(self): function benchmark (line 50) | def benchmark(calibration_image_folder: str, model_path: str, task_shape... function benchmark_mean_diff (line 71) | def benchmark_mean_diff( function main (line 90) | def main(args): FILE: tests/common/test_contrib.py function test_base_predictor (line 9) | def test_base_predictor(): function test_artefact_detector (line 22) | def test_artefact_detector(mock_artefact_image_stream): FILE: tests/common/test_core.py function test_version (line 7) | def test_version(): function test_requires_package (line 11) | def test_requires_package(): FILE: tests/common/test_engine_cfg.py function _get_rss_mb (line 14) | def _get_rss_mb(): function _test_predictor (line 20) | def _test_predictor(predictor): function test_engine_cfg (line 41) | def test_engine_cfg(det_arch, reco_arch): function test_cpu_memory_arena_shrinkage_enabled (line 86) | def test_cpu_memory_arena_shrinkage_enabled(): FILE: tests/common/test_headers.py function test_copyright_header (line 7) | def test_copyright_header(): FILE: tests/common/test_io.py function _check_doc_content (line 11) | def _check_doc_content(doc_tensors, num_pages): function test_read_pdf (line 18) | def test_read_pdf(mock_pdf): function test_read_img_as_numpy (line 39) | def test_read_img_as_numpy(tmpdir_factory, mock_pdf): function test_read_html (line 80) | def test_read_html(): function test_document_file (line 86) | def test_document_file(mock_pdf, mock_artefact_image_stream): function test_pdf (line 94) | def test_pdf(mock_pdf): FILE: tests/common/test_io_elements.py function _mock_words (line 9) | def _mock_words(size=(1.0, 1.0), offset=(0, 0), confidence=0.9, objectne... function _mock_artefacts (line 57) | def _mock_artefacts(size=(1, 1), offset=(0, 0), confidence=0.8): function _mock_lines (line 71) | def _mock_lines(size=(1, 1), offset=(0, 0), polygons=False): function _mock_blocks (line 81) | def _mock_blocks(size=(1, 1), offset=(0, 0), polygons=False): function _mock_pages (line 97) | def _mock_pages(block_size=(1, 1), block_offset=(0, 0), polygons=False): function test_element (line 118) | def test_element(): function test_word (line 123) | def test_word(): function test_line (line 165) | def test_line(): function test_artefact (line 212) | def test_artefact(): function test_block (line 233) | def test_block(): function test_page (line 260) | def test_page(): function test_document (line 309) | def test_document(): FILE: tests/common/test_models.py function mock_image (line 14) | def mock_image(tmpdir_factory): function mock_bitmap (line 25) | def mock_bitmap(mock_image): function test_estimate_orientation (line 31) | def test_estimate_orientation(mock_image, mock_bitmap, mock_tilted_paysl... function test_get_lang (line 80) | def test_get_lang(): FILE: tests/common/test_models_builder.py function test_documentbuilder (line 10) | def test_documentbuilder(): function test_sort_boxes (line 108) | def test_sort_boxes(input_boxes, sorted_idxs): function test_resolve_lines (line 131) | def test_resolve_lines(input_boxes, lines): FILE: tests/common/test_models_classification.py function test_classification_models (line 17) | def test_classification_models(arch_name, input_shape): function test_classification_zoo (line 34) | def test_classification_zoo(arch_name): function test_crop_orientation_model (line 65) | def test_crop_orientation_model(mock_text_box, quantized): function test_page_orientation_model (line 98) | def test_page_orientation_model(mock_payslip, quantized): FILE: tests/common/test_models_detection.py function test_postprocessor (line 10) | def test_postprocessor(): function test_detection_models (line 81) | def test_detection_models(arch_name, input_shape, output_size, out_prob,... function test_detection_zoo (line 117) | def test_detection_zoo(arch_name, quantized): FILE: tests/common/test_models_detection_utils.py function test_remove_padding (line 11) | def test_remove_padding(pages, preserve_aspect_ratio, symmetric_pad, ass... FILE: tests/common/test_models_factory.py function test_push_to_hf_hub (line 17) | def test_push_to_hf_hub(): function test_models_huggingface_hub (line 30) | def test_models_huggingface_hub(tmpdir): FILE: tests/common/test_models_preprocessor.py function test_preprocessor (line 16) | def test_preprocessor(batch_size, output_size, input_tensor, expected_ba... FILE: tests/common/test_models_recognition.py function test_recognition_postprocessor (line 12) | def test_recognition_postprocessor(): function test_split_crops (line 31) | def test_split_crops(crops, max_ratio, target_ratio, target_overlap_rati... function test_remap_preds (line 47) | def test_remap_preds(preds, crop_map, split_overlap_ratio, pred): function test_split_crops_cases (line 83) | def test_split_crops_cases( function test_invalid_split_overlap_ratio (line 124) | def test_invalid_split_overlap_ratio(split_overlap_ratio): function test_recognition_models (line 149) | def test_recognition_models(arch_name, input_shape, quantized): function test_recognition_zoo (line 213) | def test_recognition_zoo(arch_name, input_shape, quantized): FILE: tests/common/test_models_recognition_utils.py function test_merge_strings (line 46) | def test_merge_strings(a, b, overlap_ratio, merged): function test_merge_multi_strings (line 62) | def test_merge_multi_strings(seq_list, overlap_ratio, last_overlap_ratio... FILE: tests/common/test_models_zoo.py class _DummyCallback (line 22) | class _DummyCallback: method __call__ (line 23) | def __call__(self, loc_preds): function test_ocrpredictor (line 37) | def test_ocrpredictor( function test_trained_ocr_predictor (line 121) | def test_trained_ocr_predictor(mock_payslip): function _test_predictor (line 185) | def _test_predictor(predictor): function test_zoo_models (line 207) | def test_zoo_models(det_arch, reco_arch, quantized): FILE: tests/common/test_transforms.py function test_resize (line 7) | def test_resize(): function test_normalize (line 58) | def test_normalize(input_shape): FILE: tests/common/test_utils_data.py function test__urlretrieve (line 11) | def test__urlretrieve(): function test_download_from_url (line 24) | def test_download_from_url(mkdir_mock, urlretrieve_mock): function test_download_from_url_customizing_cache_dir (line 32) | def test_download_from_url_customizing_cache_dir(mkdir_mock, urlretrieve... function test_download_from_url_error_creating_directory (line 40) | def test_download_from_url_error_creating_directory(logging_mock, mkdir_... function test_download_from_url_error_creating_directory_with_env_var (line 52) | def test_download_from_url_error_creating_directory_with_env_var(logging... FILE: tests/common/test_utils_fonts.py function test_get_font (line 6) | def test_get_font(): FILE: tests/common/test_utils_geometry.py function test_bbox_to_polygon (line 11) | def test_bbox_to_polygon(): function test_polygon_to_bbox (line 15) | def test_polygon_to_bbox(): function test_order_points (line 19) | def test_order_points(): function test_detach_scores (line 60) | def test_detach_scores(): function test_resolve_enclosing_bbox (line 81) | def test_resolve_enclosing_bbox(): function test_resolve_enclosing_rbbox (line 87) | def test_resolve_enclosing_rbbox(): function test_remap_boxes (line 97) | def test_remap_boxes(): function test_rotate_boxes (line 141) | def test_rotate_boxes(): function sample_geoms (line 164) | def sample_geoms(): function test_rotate_abs_geoms (line 179) | def test_rotate_abs_geoms(sample_geoms): function test_rotate_image (line 188) | def test_rotate_image(): function test_remove_image_padding (line 211) | def test_remove_image_padding(): function test_convert_to_relative_coords (line 243) | def test_convert_to_relative_coords(abs_geoms, img_size, rel_geoms): function test_estimate_page_angle (line 251) | def test_estimate_page_angle(): function test_extract_crops (line 266) | def test_extract_crops(mock_pdf): function test_extract_rcrops (line 315) | def test_extract_rcrops(mock_pdf, assume_horizontal): function test_shape_translate (line 363) | def test_shape_translate(format, input_shape, expected_shape): FILE: tests/common/test_utils_multithreading.py function test_multithread_exec (line 22) | def test_multithread_exec(input_seq, func, output_seq): function test_multithread_exec_multiprocessing_disable (line 28) | def test_multithread_exec_multiprocessing_disable(): FILE: tests/common/test_utils_reconstitution.py function test_synthesize_page (line 7) | def test_synthesize_page(): FILE: tests/common/test_utils_visualization.py function test_visualize_page (line 8) | def test_visualize_page(): function test_draw_boxes (line 35) | def test_draw_boxes(): FILE: tests/common/test_utils_vocabs.py function test_vocabs_duplicates (line 6) | def test_vocabs_duplicates(): FILE: tests/conftest.py function synthesize_text_img (line 13) | def synthesize_text_img( function mock_vocab (line 41) | def mock_vocab(): function mock_pdf (line 46) | def mock_pdf(tmpdir_factory): function mock_payslip (line 65) | def mock_payslip(tmpdir_factory): function mock_tilted_payslip (line 76) | def mock_tilted_payslip(mock_payslip, tmpdir_factory): function mock_text_box_stream (line 85) | def mock_text_box_stream(): function mock_text_box (line 91) | def mock_text_box(mock_text_box_stream, tmpdir_factory): function mock_artefact_image_stream (line 100) | def mock_artefact_image_stream():