Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

documentAI Labeling OCR issues: text select vs. bounding box

I need some help with best practices for labeling a PDF in DocAI. Based on my details, which option is best, or, is there an unforeseen better option? Situation as follows: 

From Best Practices for Labeling:

Prefer labeling with the bounding box tool first. If that fails, use the select text tool. If the value of the label is not correctly detected by OCR, manually correct the value.

My forms frequently return two values when labeled with the bounding box tool. To resolve this I can do one of the following:

  1. Manually correct the value (low difficulty).
  2. Drag the bounding box in a very precise way to only capture one of the two values (moderate difficulty).
  3. Switch to the select text tool to attempt to grab only the text correctly identified by OCR (high difficulty).

The example below (zoomed in on a small portion of the document) returns the following values:

  1. "02 60" when labeling the entire area with the bounding box tool. 
  2. "02" when labeling a precise area with the bounding box tool.
  3. "{A VERY LONG STRING OF CHARACTERS FROM ALL OVER THE DOCUMENT}" when labeling with the select text tool. This was essentially unusable, I believe it was because the OCR detected two overlapping values. 

1.
entire area bounding box toolentire area bounding box tool

 2.

precise bound box toolprecise bound box tool

3. 

select text toolselect text tool

 

1 2 680
2 REPLIES 2