Overview of DBNet in EasyOCR
masterDBNet is a text detection module adapted from DBNet++. It performs image segmentation at the pixel level, classifying whether each pixel belongs to a text region.
Key Concepts:
- Probability Heatmap: A tensor representing the classification confidence of each pixel.
- Segmentation: A boolean-like tensor representing the determined text regions.
- text_threshold: The threshold applied to the probability heatmap to define text regions.
- detection_size: The dimensions used for the detection routine. Input images are resized to this size (and must have width/height as multiples of 32) if they do not match.
Configuration:
- The module uses dynamic import and class construction via config files located in
./configs/. - Minimum and maximum image sizes can be specified in these config files.