ExtractTable: Function to extract all tables from an image

View source: R/ExtractTable.R

ExtractTableR Documentation

Function to extract all tables from an image

Description

Extracts tables from an image, returns a list of matrices and vectors with extracted information.

Usage

ExtractTable(img, api_key = NULL)

Arguments

img

character indicating file location of image or an object of class 'magick-image'

api_key

character extractable api key. If NULL will search Environment variables for object 'EXTRACTABLE_API_KEY'

Value

list of matrices and vectors of extracted table information

Examples

## Not run: 
"https://dps.hawaii.gov/wp-content/uploads/2020/03/" %>%
    paste0("Inmate-Test-Report-12.1.20.jpg") %>%
    magick::image_read() %>%
    ExtractTable()

## End(Not run)

uclalawcovid19behindbars/behindbarstools documentation built on April 22, 2022, 4:08 a.m.