hezar.models.text_detection.craft.craft_image_processor module¶
- class hezar.models.text_detection.craft.craft_image_processor.CraftImageProcessor(config: CraftImageProcessorConfig, **kwargs)[source]¶
Bases:
ImageProcessor
- class hezar.models.text_detection.craft.craft_image_processor.CraftImageProcessorConfig(mean: 'tuple[float]' = (123.675, 116.28, 103.53), std: 'tuple[float]' = (58.395, 57.12, 57.375), rescale: 'float' = None, resample: int = None, size: Tuple[int, int] = None, mirror: bool = False, gray_scale: bool = False, square_size: 'int' = 2560, mag_ratio: 'float' = 1.0)[source]¶
Bases:
ImageProcessorConfig
- mag_ratio: float = 1.0¶
- mean: tuple[float] = (123.675, 116.28, 103.53)¶
- name: str = 'craft_image_processor'¶
- rescale: float = None¶
- square_size: int = 2560¶
- std: tuple[float] = (58.395, 57.12, 57.375)¶