plot_results: Plots text and bounding boxes on photo

Description Usage Arguments Examples

View source: R/funcs.R

Description

plot_results Utilizes ggplot2 to plot extracted text and bounding boxes on image

Usage

1
plot_results(img_path, image_text)

Arguments

img_path

a file path or URL to an image file of type jpg, tiff, or png

image_text

a data.frame of extracted text as returned from extract_text using the same image as img_path

Examples

1
2
3
4
5
6
7
## Not run: 
img_file_location <- "./vignettes/data/raw_data/example_images/IMG_0797.JPG"
image_text <- extract_text(img_file_location)
img_plot <- plot_results(img_file_location, image_text)
img_plot

## End(Not run)

mrecos/signboardr documentation built on May 22, 2019, 12:34 p.m.