flow_preprocessing

Python package for preprocessing document images and PageXML files for HTR tasks, developed for the Flow Project.

API Reference

Main Package

flow_preprocessing

Flow Preprocessor - Preprocessing Logic Module

Core Modules

Preprocessor

flow_preprocessing.preprocessing_logic.preprocess.ZipPreprocessor(...)

Preprocessor for ZIP files (local or remote).

flow_preprocessing.preprocessing_logic.preprocess.HuggingFacePreprocessor(...)

Preprocessor for HuggingFace datasets.

flow_preprocessing.preprocessing_logic.preprocess.PreprocessorBuilder(...)

Builder for creating Preprocessor instances with fluent API.

Configuration

flow_preprocessing.preprocessing_logic.config.PreprocessorConfig(*, ...)

Extended configuration for the preprocessor.

flow_preprocessing.preprocessing_logic.config.PreprocessorBaseConfig(*, ...)

Configuration for the preprocessor.

flow_preprocessing.preprocessing_logic.config.ExportMode(*values)

Available export modes for the preprocessor.

Utilities

flow_preprocessing.utils.url_validator.validate_url(url)

Validate URL to prevent SSRF (Server-Side Request Forgery) attacks.

Indices and tables