Interface DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder (0.37.0)

public static interface DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnhancedDocumentElements(int index)

public abstract String getEnhancedDocumentElements(int index)

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The enhancedDocumentElements at the given index.

getEnhancedDocumentElementsBytes(int index)

public abstract ByteString getEnhancedDocumentElementsBytes(int index)

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the enhancedDocumentElements at the given index.

getEnhancedDocumentElementsCount()

public abstract int getEnhancedDocumentElementsCount()

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Returns
Type Description
int

The count of enhancedDocumentElements.

getEnhancedDocumentElementsList()

public abstract List<String> getEnhancedDocumentElementsList()

Apply additional enhanced OCR processing to a list of document elements.

Supported values:

  • table: advanced table parsing model.

repeated string enhanced_document_elements = 1;

Returns
Type Description
List<String>

A list containing the enhancedDocumentElements.

getUseNativeText()

public abstract boolean getUseNativeText()

If true, will use native text instead of OCR text on pages containing native text.

bool use_native_text = 2;

Returns
Type Description
boolean

The useNativeText.