DocumentAnalysisFeature Class

public final class DocumentAnalysisFeature
extends ExpandableStringEnum<DocumentAnalysisFeature>

Defines values for DocumentAnalysisFeature.

Field Summary

Modifier and Type Field and Description
static final DocumentAnalysisFeature BARCODES

Enable the detection of barcodes in the document.

static final DocumentAnalysisFeature FORMULAS

Enable the detection of mathematical expressions in the document.

static final DocumentAnalysisFeature KEY_VALUE_PAIRS

Enable the detection of general key value pairs (form fields) in the document.

static final DocumentAnalysisFeature LANGUAGES

Enable the detection of the text content language.

static final DocumentAnalysisFeature OCR_HIGH_RESOLUTION

Perform OCR at a higher resolution to handle documents with fine print.

static final DocumentAnalysisFeature STYLE_FONT

Enable the recognition of various font styles.

Constructor Summary

Constructor Description
DocumentAnalysisFeature()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentAnalysisFeature value.

Method Summary

Modifier and Type Method and Description
static DocumentAnalysisFeature fromString(String name)

Creates or finds a DocumentAnalysisFeature from its string representation.

static Collection<DocumentAnalysisFeature> values()

Gets known DocumentAnalysisFeature values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BARCODES

public static final DocumentAnalysisFeature BARCODES

Enable the detection of barcodes in the document.

FORMULAS

public static final DocumentAnalysisFeature FORMULAS

Enable the detection of mathematical expressions in the document.

KEY_VALUE_PAIRS

public static final DocumentAnalysisFeature KEY_VALUE_PAIRS

Enable the detection of general key value pairs (form fields) in the document.

LANGUAGES

public static final DocumentAnalysisFeature LANGUAGES

Enable the detection of the text content language.

OCR_HIGH_RESOLUTION

public static final DocumentAnalysisFeature OCR_HIGH_RESOLUTION

Perform OCR at a higher resolution to handle documents with fine print.

STYLE_FONT

public static final DocumentAnalysisFeature STYLE_FONT

Enable the recognition of various font styles.

Constructor Details

DocumentAnalysisFeature

@Deprecated
public DocumentAnalysisFeature()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentAnalysisFeature value.

Method Details

fromString

public static DocumentAnalysisFeature fromString(String name)

Creates or finds a DocumentAnalysisFeature from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentAnalysisFeature.

values

public static Collection values()

Gets known DocumentAnalysisFeature values.

Returns:

known DocumentAnalysisFeature values.

Applies to