Class RecognizeReceiptsOptions
java.lang.Object
com.azure.ai.formrecognizer.models.RecognizeReceiptsOptions
Options that may be passed when using recognize receipt APIs on Form Recognizer client.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the type of the form.Get the locale information for the receipt.getPages()
Get the custom page numbers for multi-page documents(PDF/TIFF).Get the duration between each poll for the operation status.boolean
Get the boolean which specifies if to include form element references in the result.setContentType
(FormContentType contentType) Set the type of the form.setFieldElementsIncluded
(boolean includeFieldElements) Set the boolean which specifies if to include form element references in the result.setLocale
(FormRecognizerLocale locale) Set the locale information for the receipt.Set the custom page numbers for multi-page documents(PDF/TIFF).setPollInterval
(Duration pollInterval) Set the duration between each poll for the operation status.
-
Constructor Details
-
RecognizeReceiptsOptions
public RecognizeReceiptsOptions()
-
-
Method Details
-
getContentType
Get the type of the form. Supported Media types including .pdf, .jpg, .png or .tiff type file stream.- Returns:
- the
contentType
value.
-
isFieldElementsIncluded
public boolean isFieldElementsIncluded()Get the boolean which specifies if to include form element references in the result.- Returns:
- the
includeFieldElements
value.
-
getPollInterval
Get the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.- Returns:
- the
pollInterval
value.
-
setContentType
Set the type of the form. Supported Media types including .pdf, .jpg, .png or .tiff type file stream.- Parameters:
contentType
- the provided form content type.- Returns:
- the updated
RecognizeReceiptsOptions
value.
-
setFieldElementsIncluded
Set the boolean which specifies if to include form element references in the result.- Parameters:
includeFieldElements
- the boolean to specify if to include form element references in the result.- Returns:
- the updated
RecognizeReceiptsOptions
value.
-
setPollInterval
Set the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.- Parameters:
pollInterval
- the duration to specify between each poll for the operation status.- Returns:
- the updated
RecognizeReceiptsOptions
value.
-
getLocale
Get the locale information for the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.- Returns:
- the locale value.
-
setLocale
Set the locale information for the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.- Parameters:
locale
- the locale value to set.- Returns:
- the updated
RecognizeReceiptsOptions
value.
-
getPages
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:
- the list of custom page numbers for a multi page document.
-
setPages
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:
pages
- the custom page numbers value to set.- Returns:
- the updated
RecognizeReceiptsOptions
value.
-