Skip to content

asrivas/documentai-bounding-boxes

Repository files navigation

Document AI Bouding Boxes Workshop

In this tutorial you will process a document with a Document AI processor and visualize its output.

boxes table

Prerequisites

You must be familar GCP and have your own project created.

  1. Set up your GCP project for Document AI following the Setup Guide
  2. Enable the 'Document AI API' in your project in the Cloud Console

Form Parser Tutorial

In this step we will use the Document AI Form Parser to parse a generic sample form.

  1. Create a processor, follow the step here to create an instance of a Form Parser.

processors

  1. Copy your processor id.

processorId

  1. Find the cell where the processor variables are set, you will also need your GCP Project ID.
PROJECT_ID = "YOUR_PROJECT_ID_HERE"
LOCATION = "LOCATION"  # Format is 'us' or 'eu'
PROCESSOR_ID = "PROCESSOR_ID"  # Create processor in Cloud Console

Please note, the location must match the one assigned to the processor.

  1. Run the notebook.

Once you have completed this we suggest trying out a specialized form by repeating the steps and creating a specialized parser type (Invoices, Receipes, etc) and running the process_specialized_form notebook.

About

This is a tutorial for using Google Cloud Document AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published