bbox_pad: Functions for padding bbox These functions can "pad"...

Description Usage Arguments Value Examples

Description

Functions for padding bbox These functions can "pad" (increase size of) bbox

Usage

1
2
3
bbox_pad_width(bbox, word, n = 1, side = "both")

bbox_pad_height(bbox, word, n = 0.5, side = "both")

Arguments

bbox

character vector of bounding boxes to pad

word

character vector of words contained in bboxes

n

integer number of symbols to add

side

"left", "right" (for bbox_pad_width()), "up", "down" (for bbox_pad_height()) or "both" which side to pad

Value

a vector of validated bboxes

Examples

1
2
bbox_pad_width("0 0 10 20", "There")
bbox_pad_height("0 0 10 20", "There")

dmi3kno/hocr documentation built on April 27, 2020, 10:39 a.m.