Description Usage Arguments Details Examples
extract_text
Calls GoogleVision API with TEXT_DETECTION feature
1 | extract_text(img_path)
|
img_path |
a file path or URL to an image file of type jpg, tiff, or png |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.