public final class RecognizeContentOptions extends Object
Constructor and Description |
---|
RecognizeContentOptions() |
Modifier and Type | Method and Description |
---|---|
FormContentType |
getContentType()
Get the type of the form.
|
FormRecognizerLanguage |
getLanguage()
Get the BCP-47 language code of the text in the document.
|
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.
|
FormReadingOrder |
getReadingOrder()
Get the order in which recognized text lines are returned.
|
RecognizeContentOptions |
setContentType(FormContentType contentType)
Set the type of the form.
|
RecognizeContentOptions |
setLanguage(FormRecognizerLanguage language)
Set the BCP-47 language code of the text in the document.
|
RecognizeContentOptions |
setPages(List<String> pages)
Set the custom page numbers for multi-page documents(PDF/TIFF).
|
RecognizeContentOptions |
setPollInterval(Duration pollInterval)
Set the duration between each poll for the operation status.
|
RecognizeContentOptions |
setReadingOrder(FormReadingOrder readingOrder)
Specifies the order in which recognized text lines are returned.
|
public FormContentType getContentType()
contentType
value.public Duration getPollInterval()
pollInterval
value.public RecognizeContentOptions setContentType(FormContentType contentType)
contentType
- the provided form content type.RecognizeContentOptions
value.public RecognizeContentOptions setPollInterval(Duration pollInterval)
pollInterval
- the duration to specify between each poll for the operation status.RecognizeContentOptions
value.public FormRecognizerLanguage getLanguage()
public RecognizeContentOptions setLanguage(FormRecognizerLanguage language)
language
- the language code value to set.RecognizeContentOptions
value.public List<String> getPages()
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].
public RecognizeContentOptions setPages(List<String> pages)
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].
pages
- the custom page numbers value to set.RecognizeContentOptions
value.public FormReadingOrder getReadingOrder()
public RecognizeContentOptions setReadingOrder(FormReadingOrder readingOrder)
readingOrder
- the order specifies in which text lines are returnedRecognizeContentOptions
value.Copyright © 2021. All rights reserved.