Expand description
Postprocessing Utilities
Provides post-processing functions for text detection results, including bounding box extraction, NMS, box merging, etc.
Structs§
- TextBox
- Text bounding box
Functions§
- compute_
iou - Calculate IoU (Intersection over Union) of two rectangles
- detect_
text_ traditional - Detect text regions using traditional algorithm (suitable for solid background)
- extract_
boxes_ from_ mask - Extract text bounding boxes from segmentation mask
- extract_
boxes_ from_ mask_ with_ padding - Extract text bounding boxes from segmentation mask with padding
- extract_
boxes_ with_ unclip - Extract text bounding boxes from segmentation mask (with unclip expansion)
- group_
boxes_ by_ line - Group bounding boxes by line
- merge_
adjacent_ boxes - Merge adjacent bounding boxes
- merge_
multi_ scale_ results - Merge bounding boxes from multiple detection results (for high precision mode)
- nms
- Non-Maximum Suppression (NMS)
- sort_
boxes_ by_ reading_ order - Sort bounding boxes by reading order (top to bottom, left to right)