MCPcopy Create free account

hub / github.com/PellelNitram/xournalpp_htr / functions

Functions308 in github.com/PellelNitram/xournalpp_htr

Method__init__
(self, cx, cy, cz)
xournalpp_htr/training/word_detector/network.py:62
Method__init__
( self, root_dir: Path, input_size: ImageDimensions, output_size: ImageDimensi
xournalpp_htr/training/word_detector/dataset.py:169
Method__init__
(self, net: WordDetectorNet)
xournalpp_htr/training/word_detector/export.py:41
Method__init__
Initialise an `IAM_OnDB_Dataset`. The data of the dataset needs to be stored on disk as follows to be readable by this present class:
xournalpp_htr/training/data/datasets.py:220
Method__init__
Initialise a `PageDataset`. TODO.
xournalpp_htr/training/data/datasets.py:385
Method__init__
Axis-aligned bounding box. ``(x_min, y_min)`` is the top-left corner, ``(x_max, y_max)`` the bottom-right corner. ``label`` is an opt
xournalpp_htr/training/shared/bounding_box.py:18
Method__len__
(self)
xournalpp_htr/training/simple_htr/dataset.py:244
Method__len__
(self)
xournalpp_htr/training/word_detector/dataset.py:294
Method__len__
(self)
xournalpp_htr/training/data/datasets.py:303
Method__len__
(self)
xournalpp_htr/training/data/datasets.py:449
Method__repr__
(self)
xournalpp_htr/inference_models.py:50
Method__repr__
(self)
xournalpp_htr/training/shared/bounding_box.py:107
Methodconstructor
(canvas)
tools/data_annotation_tool/renderer.js:4
Functioncustom_collate_fn
Collate ``IAM_Words_Element`` batches for the ``DataLoader``.
xournalpp_htr/training/simple_htr/dataset.py:273
Functioncustom_collate_fn
Collate ``IAM_Dataset_Element`` batches for the ``DataLoader``.
xournalpp_htr/training/word_detector/dataset.py:321
Functiondecode_indices
(indices: List[int], idx_to_char: dict)
xournalpp_htr/training/simple_htr/dataset.py:32
Methoddefault
(self, obj)
xournalpp_htr/training/simple_htr/utils.py:24
Methoddefault
(self, obj)
xournalpp_htr/training/word_detector/utils.py:27
Functiondemo_container
Start the demo container with dummy env vars; stop it after the test.
tests/test_docker.py:59
MethoddocToScreen
(dx, dy)
tools/data_annotation_tool/renderer.js:64
Functiondocker_image
Build the Docker image once per test session and return its tag.
tests/test_docker.py:44
Functiondocument_to_HTR_document_and_image_of_first_page
Processes a document to generate a PDF with handwritten text recognition (HTR) predictions and extracts the image of the first page. Arg
scripts/demo.py:125
Functiondocument_to_image_of_first_page
Converts the first page of the input document to an image. This function exports the input document to a PDF format using Xournal++, ext
scripts/demo.py:87
Methoddoes_bboxes_overlap
TODO. Sources: - https://stackoverflow.com/a/40795835 and - https://code.tutsplus.com/collision-detection-using-t
xournalpp_htr/training/data/datasets.py:625
Functiondummy_transform
(img, aabbs)
xournalpp_htr/training/word_detector/dataset.py:311
Functionexample_files
()
tests/test_empty_file_crash.py:16
Methodforward
Forward pass. Args: x: (batch, 1, height, width) grayscale image tensor. Returns: (seq_len, batch, num_class
xournalpp_htr/training/simple_htr/network.py:72
Methodforward
(self, x: torch.Tensor)
xournalpp_htr/training/word_detector/network.py:55
Methodforward
(self, x, y, s)
xournalpp_htr/training/word_detector/network.py:66
Methodforward
(self, x, apply_softmax=False)
xournalpp_htr/training/word_detector/network.py:110
Methodforward
(self, x)
xournalpp_htr/training/word_detector/export.py:45
Methodfrom_pretrained
(cls, revision: str = "main")
xournalpp_htr/inference_models.py:48
Methodfrom_pretrained
(cls, revision: str = "main")
xournalpp_htr/inference_models.py:76
Functionfunc
(seg_map)
xournalpp_htr/training/shared/postprocessing.py:49
Functionget_path_to_IAM_OnDB_dataset
Fixture to retrieve the path to the IAM-OnDB dataset. Downloads and caches the dataset from HuggingFace Hub if not already present locally. R
tests/conftest.py:27
Functionget_path_to_minimal_test_data
Fixture to retrieve the path to the minimal test data file. Downloads and caches the file from the HuggingFace Hub dataset ``PellelNitram/xou
tests/conftest.py:7
FunctionhandleExport
()
tools/data_annotation_tool/app.js:283
FunctionhandleFileOpen
(e)
tools/data_annotation_tool/app.js:199
FunctionhandleLoadGT
(e)
tools/data_annotation_tool/app.js:256
FunctionhandleMouseDown
(e)
tools/data_annotation_tool/app.js:580
Methodload_data
Load Xournal document content.
xournalpp_htr/documents.py:136
Methodload_data
Load Xournal document content.
xournalpp_htr/documents.py:167
Functionmain
()
xournalpp_htr/configure.py:5
FunctiononKeyDown
(e)
tools/data_annotation_tool/app.js:529
FunctiononMouseMove
(e)
tools/data_annotation_tool/app.js:456
FunctiononMouseUp
(e)
tools/data_annotation_tool/app.js:491
FunctiononWheel
(e)
tools/data_annotation_tool/app.js:515
Functionprocess_image
``image`` is (H, W, 3) uint8 RGB; the return has the same shape.
xournalpp_htr/training/word_detector/demo.py:23
Functionprocess_sketch
(sketch: dict)
xournalpp_htr/training/simple_htr/demo.py:66
Functionsave_HTR_document_for_download
Saves the Handwritten Text Recognition (HTR) document for download. This function logs the interaction of saving an HTR document for downloa
scripts/demo.py:171
Functiontest_XournalppDocument
Tests `XournalppDocument` and thereby its `load_data` function.
tests/test_XournalDocument.py:8
Functiontest_abc_cannot_be_instantiated_directly
()
tests/test_inference_models.py:37
Functiontest_binary_classification_metrics_perfect_match
()
tests/test_word_detector_postprocessing.py:61
Functiontest_bounding_box_area_and_clip
()
tests/test_word_detector_postprocessing.py:29
Functiontest_bounding_box_translate_and_scale
()
tests/test_word_detector_postprocessing.py:20
Functiontest_cer_completely_wrong
()
tests/test_benchmark.py:48
Functiontest_cer_empty_hypothesis
()
tests/test_benchmark.py:52
Functiontest_cer_identical
()
tests/test_benchmark.py:39
Functiontest_cer_one_substitution
()
tests/test_benchmark.py:43
Functiontest_cluster_aabbs_merges_overlapping_group
()
tests/test_word_detector_postprocessing.py:114
Functiontest_cluster_aabbs_passthrough_for_small_input
()
tests/test_word_detector_postprocessing.py:109
Functiontest_compute
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:14
Functiontest_compute_iou_identical_and_disjoint
()
tests/test_word_detector_postprocessing.py:55
Functiontest_compute_scale_down
()
tests/test_word_detector_postprocessing.py:67
Functiontest_concrete_subclass_stores_revision_and_repr
()
tests/test_inference_models.py:50
Functiontest_construction_no_limit
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:31
Functiontest_construction_no_limit_skip_carbune2020_fails
( get_path_to_IAM_OnDB_dataset: Path, )
tests/test_IAM_OnDB_Dataset.py:39
Functiontest_construction_with_limit
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:19
Functiontest_correctness_manually
( tmp_path: Path, get_path_to_IAM_OnDB_dataset: Path )
tests/test_IAM_OnDB_Dataset.py:56
Functiontest_dataset_path_exists
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:14
Functiontest_decode_empty_when_no_foreground
()
tests/test_word_detector_postprocessing.py:101
Functiontest_decode_recovers_box_from_geometry_maps
()
tests/test_word_detector_postprocessing.py:85
Functiontest_docker_hf_packages_importable
All HF-extra Python packages are importable inside the container.
tests/test_docker.py:93
Functiontest_docker_image_builds
The Docker image builds without error.
tests/test_docker.py:76
Functiontest_docker_server_responds
The Gradio HTTP server inside the container responds with HTTP 200.
tests/test_docker.py:111
Functiontest_docker_xournalpp_available
The xournalpp binary is installed and on PATH inside the container.
tests/test_docker.py:81
Functiontest_get_document_does_not_crash_on_empty_file
Test that `get_document` does not crash when processing an empty Xournal++ file.
tests/test_empty_file_crash.py:30
Functiontest_get_document_unsupported
Tests `get_document` function for an unsupported file extension.
tests/test_XournalDocument.py:42
Functiontest_get_document_xopp
Tests `get_document` function for a `xopp` file.
tests/test_XournalDocument.py:25
Functiontest_get_min_max_coordintes_per_page
Regression test of `Document.get_min_max_coordintes_per_page` function.
tests/test_XournalDocument.py:48
Functiontest_getitem
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:98
Functiontest_htr_pipeline_package_installation
Test if code from `htr_pipeline` package can be imported.
tests/test_installation.py:7
Functiontest_image_dimensions_namedtuple
()
tests/test_word_detector_postprocessing.py:47
Functiontest_iou_identical_boxes
()
tests/test_benchmark.py:20
Functiontest_iou_no_overlap
()
tests/test_benchmark.py:24
Functiontest_iou_partial_overlap
()
tests/test_benchmark.py:28
Functiontest_load_benchmark_returns_pairs
()
tests/test_xio.py:7
Functiontest_main
Tests the `main` function using minimal test data. Note: This function is currently not executed in Github Actions due to the requirement of
tests/test_run_htr.py:42
Functiontest_main_local_pipeline
( get_path_to_minimal_test_data: Path, tmp_path: Path )
tests/test_run_htr.py:68
Functiontest_match_multiple_pages
()
tests/test_benchmark.py:99
Functiontest_match_no_overlap
()
tests/test_benchmark.py:68
Functiontest_match_one_gt_two_preds_assigns_higher_iou
()
tests/test_benchmark.py:74
Functiontest_match_one_pred_two_gts_assigns_higher_iou
()
tests/test_benchmark.py:83
Functiontest_match_perfect_overlap
()
tests/test_benchmark.py:60
Functiontest_match_respects_page_index
()
tests/test_benchmark.py:92
Functiontest_normalize_image_transform_range
()
tests/test_word_detector_postprocessing.py:74
Functiontest_parse_arguments_empty
Test `parse_arguments` with no command-line arguments. Ensures that `parse_arguments` raises a `SystemExit` exception when called without arg
tests/test_run_htr.py:10
Functiontest_parse_arguments_full
Test the `parse_arguments` function with a full set of input arguments. This test verifies that the `parse_arguments` function correctly
tests/test_run_htr.py:26
Functiontest_render_page_and_mask
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:54
Functiontest_scale_around_center_keeps_center
()
tests/test_word_detector_postprocessing.py:40
← previousnext →201–300 of 308, ranked by callers