build_block_df | R Documentation |
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(object, type = "sync")
object |
either a HTTP response object from
|
type |
one of "sync" or "async" depending on the function used to process the original document. |
The dataframe variables are: page number, block number, confidence score, left boundary, right boundary, top boundary, and bottom boundary.
a block data frame
## Not run:
resp <- dai_sync("file.pdf")
block_df <- build_block_df(resp)
block_df <- build_block_df("pdf_output.json", type = "async")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.