Skip to main content

Module validation

Module validation 

Source
Expand description

Reusable validation components for OCR tasks.

This module provides composable validators that can be used across different tasks to validate common patterns like score ranges, dimensions, and other constraints.

Structs§

ScoreValidator
A reusable validator for score ranges.

Functions§

validate_length_match
Validates that a vector’s length matches an expected size.
validate_max_value
Validates that a value doesn’t exceed a maximum.
validate_positive_dimensions
Validates that dimensions are positive (non-zero).