Description Usage Arguments Details Value Examples
View source: R/inspect_output.R
Plots the token (i.e., word) bounding boxes identified by Document AI (DAI) onto images of the submitted document. Generates an annotated .png file for each page in the original document.
1 | draw_tokens(json, dir = getwd())
|
json |
filepath of a JSON file obtained using |
dir |
path to the desired output directory. |
Not vectorized, but documents can be multi-page.
no return value, called for side effects
1 2 3 4 | ## Not run:
draw_tokens("pdf_output.json", dir = tempdir())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.