Interface DocumentProcessingConfig.ParsingConfig.OcrParsingConfigOrBuilder (0.36.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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The useNativeText.