Skip to main content

db_boxes

Function db_boxes 

Source
pub fn db_boxes(
    prob: &[f32],
    w: usize,
    h: usize,
    dest_w: u32,
    dest_h: u32,
) -> Vec<DetBox>
Expand description

DBPostProcess.__call__: text boxes from the detector’s w × h probability map, mapped onto a dest_w × dest_h image (the one the map was computed from). Boxes come back in RapidOCR’s reading order.