Authenticate

dai_auth()

Check authentication

dai_token()

Produce access token

dai_user()

Get user information

get_project_id()

Get project id

Send for processing

dai_sync()

OCR document synchronously

dai_async()

OCR documents asynchronously

dai_status()

Check job status

dai_sync_tab()

OCR synchronously and get table data

dai_async_tab()

OCR asynchronously and get table data

Inspect output

text_from_dai_response()

Get text from HTTP response object

text_from_dai_file()

Get text from output file

draw_blocks()

Inspect block bounding boxes

draw_paragraphs()

Inspect paragraph bounding boxes

draw_lines()

Inspect line bounding boxes

draw_tokens()

Inspect token bounding boxes

Process output

build_token_df()

Build token dataframe

build_block_df()

Build block dataframe

split_block()

Split a block bounding box

reassign_tokens()

Assign tokens to new blocks

reassign_tokens2()

Assign tokens to a single new block

from_labelme()

Extract block coordinates from labelme files

redraw_blocks()

Inspect revised block bounding boxes

Utilities

image_to_pdf()

Convert images to PDF

is_pdf()

Check that a file is PDF

is_json()

Check that a file is JSON

pdf_to_binbase()

PDF to base64 tiff

img_to_binbase()

Image to base64 tiff