extract_text: Extract text from photo with GoogleVision API

Description Usage Arguments Details Examples

View source: R/funcs.R

Description

extract_text Calls GoogleVision API with TEXT_DETECTION feature

Usage

1
extract_text(img_path)

Arguments

img_path

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

Details

This is a function that simply calls the GoogleVision API and passes a photo URL The only argument is imgPath which should be a file path to an image file.

Examples

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

## End(Not run)

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