RecognizeReceiptsOptions Class
- java.
lang. Object - com.
azure. ai. formrecognizer. models. RecognizeReceiptsOptions
- com.
public final class RecognizeReceiptsOptions
Options that may be passed when using recognize receipt APIs on Form Recognizer client.
Constructor Summary
Constructor | Description |
---|---|
RecognizeReceiptsOptions() |
Create a |
Method Summary
Modifier and Type | Method and Description |
---|---|
Form |
getContentType()
Get the type of the form. |
Form |
getLocale()
Get the locale information for the receipt. |
List<String> |
getPages()
Get the custom page numbers for multi-page documents(PDF/TIFF). |
Duration |
getPollInterval()
Get the duration between each poll for the operation status. |
boolean |
isFieldElementsIncluded()
Get the boolean which specifies if to include form element references in the result. |
Recognize |
setContentType(FormContentType contentType)
Set the type of the form. |
Recognize |
setFieldElementsIncluded(boolean includeFieldElements)
Set the boolean which specifies if to include form element references in the result. |
Recognize |
setLocale(FormRecognizerLocale locale)
Set the locale information for the receipt. |
Recognize |
setPages(List<String> pages)
Set the custom page numbers for multi-page documents(PDF/TIFF). |
Recognize |
setPollInterval(Duration pollInterval)
Set the duration between each poll for the operation status. |
Methods inherited from java.lang.Object
Constructor Details
RecognizeReceiptsOptions
public RecognizeReceiptsOptions()
Create a RecognizeReceiptsOptions
object.
Method Details
getContentType
public FormContentType getContentType()
Get the type of the form. Supported Media types including .pdf, .jpg, .png or .tiff type file stream.
Returns:
contentType
value.getLocale
public FormRecognizerLocale getLocale()
Get the locale information for the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.
Returns:
getPages
public List
Get the custom page numbers for multi-page documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Returns:
getPollInterval
public Duration getPollInterval()
Get the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.
Returns:
pollInterval
value.isFieldElementsIncluded
public boolean isFieldElementsIncluded()
Get the boolean which specifies if to include form element references in the result.
Returns:
includeFieldElements
value.setContentType
public RecognizeReceiptsOptions setContentType(FormContentType contentType)
Set the type of the form. Supported Media types including .pdf, .jpg, .png or .tiff type file stream.
Parameters:
Returns:
RecognizeReceiptsOptions
value.setFieldElementsIncluded
public RecognizeReceiptsOptions setFieldElementsIncluded(boolean includeFieldElements)
Set the boolean which specifies if to include form element references in the result.
Parameters:
Returns:
RecognizeReceiptsOptions
value.setLocale
public RecognizeReceiptsOptions setLocale(FormRecognizerLocale locale)
Set the locale information for the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.
Parameters:
Returns:
RecognizeReceiptsOptions
value.setPages
public RecognizeReceiptsOptions setPages(List
Set the custom page numbers for multi-page documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Parameters:
Returns:
RecognizeReceiptsOptions
value.setPollInterval
public RecognizeReceiptsOptions setPollInterval(Duration pollInterval)
Set the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.
Parameters:
Returns:
RecognizeReceiptsOptions
value.Applies to
Azure SDK for Java