Class RecognizeContentOptions
The set of options that can be specified when calling a Recognize Content method to configure the behavior of the request. For example, specify the content type of the form, the language of the form, and which pages in a multi-page document to analyze.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.AI.FormRecognizer.dll
Syntax
public class RecognizeContentOptions
Constructors
RecognizeContentOptions()
Initializes a new instance of the RecognizeContentOptions class which allows to set options that can be specified when calling a Recognize Content method to configure the behavior of the request. For example, specify the content type of the form, the language of the form, and which pages in a multi-page document to analyze.
Declaration
public RecognizeContentOptions ();
Properties
ContentType
When set, specifies the content type for uploaded streams and skips automatic content type detection.
Declaration
public Nullable<Azure.AI.FormRecognizer.FormContentType> ContentType { get; set; }
Property Value
System.Nullable<FormContentType>
|
Language
The BCP-47 language code of the text in the document. Recognize Content supports auto language identification and multi language documents, so only provide a language code if you would like to force the documented to be processed as that specific language.
Declaration
public Nullable<Azure.AI.FormRecognizer.FormRecognizerLanguage> Language { get; set; }
Property Value
System.Nullable<FormRecognizerLanguage>
|
Remarks
This property only has value for V2_1 and up.
Pages
Custom page numbers for multi-page documents(PDF/TIFF). Input the page numbers and/or ranges of pages you want to get in the result. For a range of pages, use a hyphen, like `Pages = { "1-3", "5-6" }`. Separate each page number or range with a comma.
Although this collection cannot be set, it can be modified. See collection initializer.
Declaration
public System.Collections.Generic.IList<string> Pages { get; }
Property Value
System.Collections.Generic.IList<System.String>
|
Remarks
This property only has value for V2_1 and up.
ReadingOrder
When set, specifies the order in which the recognized text lines are returned. As the sorting order depends on the detected text, it may change across images and OCR version updates. Thus, business logic should be built upon the actual line location instead of order.
Declaration
public Nullable<Azure.AI.FormRecognizer.FormReadingOrder> ReadingOrder { get; set; }
Property Value
System.Nullable<FormReadingOrder>
|
Remarks
This property only has value for V2_1 and up.