Expand description
Image preprocessing module for OCR pipeline
This module provides comprehensive image preprocessing capabilities including:
- Image transformations (grayscale, blur, sharpen, threshold)
- Rotation detection and correction
- Skew correction (deskewing)
- Image enhancement (CLAHE, normalization)
- Text region segmentation
- Complete preprocessing pipeline with parallel processing
Modules§
- deskew
- Skew detection and correction using Hough transform
- enhancement
- Image enhancement functions for improving OCR accuracy
- pipeline
- Complete preprocessing pipeline with builder pattern and parallel processing
- rotation
- Rotation detection and correction using projection profiles
- segmentation
- Text region detection and segmentation
- transforms
- Image transformation functions for preprocessing
Structs§
- Preprocess
Options - Preprocessing options for configuring the pipeline
- Text
Region - Detected text region with bounding box
Enums§
- Preprocess
Error - Preprocessing error types
- Region
Type - Type of text region
Functions§
- detect_
text_ regions - Detect text regions in an image
- preprocess
- Main preprocessing function with configurable options
Type Aliases§
- Result
- Result type for preprocessing operations