separate_bbox_cols: Create four individual columns out of each bbox column and...

Description Usage Arguments Value Examples

View source: R/tidy.R

Description

Create four individual columns out of each bbox column and add to tidy tibble.

Usage

1
separate_bbox_cols(df, bbox_cols = NULL, drop = FALSE)

Arguments

df

tidy hocr tibble, as produced by tidy_tesseract

bbox_cols

character vector listing all the bbox columns you want to transform, if ommitted till transform all bbox columns

drop

logical, indicating whether original bbox column(s) shoulc be dropped

Value

tidy tibble with four column added per every transformed bbox column

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(tesseract)

ocr("text.png", HOCR=TRUE) %>%
  hocr_parse() %>%
  tidy_tesseract() %>%
  separate_bbox_cols(drop=TRUE)

## End(Not run)

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