Creates a dataframe with the block bounding boxes identified by Document AI (DAI) in an asynchronous request. Rows are blocks, in the order DAI proposes to read them. Columns are location variables such as page coordinates and page numbers.

build_block_df(json)

Arguments

json

filepath of a JSON file obtained using dai_async()

Value

a block data frame

Details

The location variables are: page number, left boundary, right boundary, top boundary, and bottom boundary.

Examples

if (FALSE) { block_df <- build_block_df("pdf_output.json") }