Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PellelNitram/xournalpp_htr
/ functions
Functions
308 in github.com/PellelNitram/xournalpp_htr
⨍
Functions
308
◇
Types & classes
50
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
Method
constructor
(canvas)
tools/data_annotation_tool/renderer.js:4
Function
custom_collate_fn
Collate ``IAM_Words_Element`` batches for the ``DataLoader``.
xournalpp_htr/training/simple_htr/dataset.py:273
Function
custom_collate_fn
Collate ``IAM_Dataset_Element`` batches for the ``DataLoader``.
xournalpp_htr/training/word_detector/dataset.py:321
Function
decode_indices
(indices: List[int], idx_to_char: dict)
xournalpp_htr/training/simple_htr/dataset.py:32
Method
default
(self, obj)
xournalpp_htr/training/simple_htr/utils.py:24
Method
default
(self, obj)
xournalpp_htr/training/word_detector/utils.py:27
Function
demo_container
Start the demo container with dummy env vars; stop it after the test.
tests/test_docker.py:59
Method
docToScreen
(dx, dy)
tools/data_annotation_tool/renderer.js:64
Function
docker_image
Build the Docker image once per test session and return its tag.
tests/test_docker.py:44
Function
document_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
Function
document_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
Method
does_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
Function
dummy_transform
(img, aabbs)
xournalpp_htr/training/word_detector/dataset.py:311
Function
example_files
()
tests/test_empty_file_crash.py:16
Method
forward
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
Method
forward
(self, x: torch.Tensor)
xournalpp_htr/training/word_detector/network.py:55
Method
forward
(self, x, y, s)
xournalpp_htr/training/word_detector/network.py:66
Method
forward
(self, x, apply_softmax=False)
xournalpp_htr/training/word_detector/network.py:110
Method
forward
(self, x)
xournalpp_htr/training/word_detector/export.py:45
Method
from_pretrained
(cls, revision: str = "main")
xournalpp_htr/inference_models.py:48
Method
from_pretrained
(cls, revision: str = "main")
xournalpp_htr/inference_models.py:76
Function
func
(seg_map)
xournalpp_htr/training/shared/postprocessing.py:49
Function
get_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
Function
get_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
Function
handleExport
()
tools/data_annotation_tool/app.js:283
Function
handleFileOpen
(e)
tools/data_annotation_tool/app.js:199
Function
handleLoadGT
(e)
tools/data_annotation_tool/app.js:256
Function
handleMouseDown
(e)
tools/data_annotation_tool/app.js:580
Method
load_data
Load Xournal document content.
xournalpp_htr/documents.py:136
Method
load_data
Load Xournal document content.
xournalpp_htr/documents.py:167
Function
main
()
xournalpp_htr/configure.py:5
Function
onKeyDown
(e)
tools/data_annotation_tool/app.js:529
Function
onMouseMove
(e)
tools/data_annotation_tool/app.js:456
Function
onMouseUp
(e)
tools/data_annotation_tool/app.js:491
Function
onWheel
(e)
tools/data_annotation_tool/app.js:515
Function
process_image
``image`` is (H, W, 3) uint8 RGB; the return has the same shape.
xournalpp_htr/training/word_detector/demo.py:23
Function
process_sketch
(sketch: dict)
xournalpp_htr/training/simple_htr/demo.py:66
Function
save_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
Function
test_XournalppDocument
Tests `XournalppDocument` and thereby its `load_data` function.
tests/test_XournalDocument.py:8
Function
test_abc_cannot_be_instantiated_directly
()
tests/test_inference_models.py:37
Function
test_binary_classification_metrics_perfect_match
()
tests/test_word_detector_postprocessing.py:61
Function
test_bounding_box_area_and_clip
()
tests/test_word_detector_postprocessing.py:29
Function
test_bounding_box_translate_and_scale
()
tests/test_word_detector_postprocessing.py:20
Function
test_cer_completely_wrong
()
tests/test_benchmark.py:48
Function
test_cer_empty_hypothesis
()
tests/test_benchmark.py:52
Function
test_cer_identical
()
tests/test_benchmark.py:39
Function
test_cer_one_substitution
()
tests/test_benchmark.py:43
Function
test_cluster_aabbs_merges_overlapping_group
()
tests/test_word_detector_postprocessing.py:114
Function
test_cluster_aabbs_passthrough_for_small_input
()
tests/test_word_detector_postprocessing.py:109
Function
test_compute
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:14
Function
test_compute_iou_identical_and_disjoint
()
tests/test_word_detector_postprocessing.py:55
Function
test_compute_scale_down
()
tests/test_word_detector_postprocessing.py:67
Function
test_concrete_subclass_stores_revision_and_repr
()
tests/test_inference_models.py:50
Function
test_construction_no_limit
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:31
Function
test_construction_no_limit_skip_carbune2020_fails
( get_path_to_IAM_OnDB_dataset: Path, )
tests/test_IAM_OnDB_Dataset.py:39
Function
test_construction_with_limit
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:19
Function
test_correctness_manually
( tmp_path: Path, get_path_to_IAM_OnDB_dataset: Path )
tests/test_IAM_OnDB_Dataset.py:56
Function
test_dataset_path_exists
(get_path_to_IAM_OnDB_dataset: Path)
tests/test_IAM_OnDB_Dataset.py:14
Function
test_decode_empty_when_no_foreground
()
tests/test_word_detector_postprocessing.py:101
Function
test_decode_recovers_box_from_geometry_maps
()
tests/test_word_detector_postprocessing.py:85
Function
test_docker_hf_packages_importable
All HF-extra Python packages are importable inside the container.
tests/test_docker.py:93
Function
test_docker_image_builds
The Docker image builds without error.
tests/test_docker.py:76
Function
test_docker_server_responds
The Gradio HTTP server inside the container responds with HTTP 200.
tests/test_docker.py:111
Function
test_docker_xournalpp_available
The xournalpp binary is installed and on PATH inside the container.
tests/test_docker.py:81
Function
test_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
Function
test_get_document_unsupported
Tests `get_document` function for an unsupported file extension.
tests/test_XournalDocument.py:42
Function
test_get_document_xopp
Tests `get_document` function for a `xopp` file.
tests/test_XournalDocument.py:25
Function
test_get_min_max_coordintes_per_page
Regression test of `Document.get_min_max_coordintes_per_page` function.
tests/test_XournalDocument.py:48
Function
test_getitem
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:98
Function
test_htr_pipeline_package_installation
Test if code from `htr_pipeline` package can be imported.
tests/test_installation.py:7
Function
test_image_dimensions_namedtuple
()
tests/test_word_detector_postprocessing.py:47
Function
test_iou_identical_boxes
()
tests/test_benchmark.py:20
Function
test_iou_no_overlap
()
tests/test_benchmark.py:24
Function
test_iou_partial_overlap
()
tests/test_benchmark.py:28
Function
test_load_benchmark_returns_pairs
()
tests/test_xio.py:7
Function
test_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
Function
test_main_local_pipeline
( get_path_to_minimal_test_data: Path, tmp_path: Path )
tests/test_run_htr.py:68
Function
test_match_multiple_pages
()
tests/test_benchmark.py:99
Function
test_match_no_overlap
()
tests/test_benchmark.py:68
Function
test_match_one_gt_two_preds_assigns_higher_iou
()
tests/test_benchmark.py:74
Function
test_match_one_pred_two_gts_assigns_higher_iou
()
tests/test_benchmark.py:83
Function
test_match_perfect_overlap
()
tests/test_benchmark.py:60
Function
test_match_respects_page_index
()
tests/test_benchmark.py:92
Function
test_normalize_image_transform_range
()
tests/test_word_detector_postprocessing.py:74
Function
test_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
Function
test_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
Function
test_render_page_and_mask
(get_path_to_IAM_OnDB_dataset: Path, tmp_path: Path)
tests/test_PageDatasetFromOnline.py:54
Function
test_scale_around_center_keeps_center
()
tests/test_word_detector_postprocessing.py:40
← previous
next →
201–300 of 308, ranked by callers