Skip to main content

Module postprocess

Module postprocess 

Source
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)