RecognizeContentOptions Class

Definition

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.

public class RecognizeContentOptions
type RecognizeContentOptions = class
Public Class RecognizeContentOptions
Inheritance
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.

Properties

ContentType

When set, specifies the content type for uploaded streams and skips automatic content type detection.

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.

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 Object initializers with collection read-only property initialization.

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.

Applies to