ComputerVision.ComputerVisionReadDefinitionStages.WithAllOptions Interface
public static interface ComputerVision.ComputerVisionReadDefinitionStages.WithAllOptions
The stage of the definition which allows for any other optional settings to be specified.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withLanguage(OcrDetectionLanguage language)
The BCP-47 language code of the text in the document. |
abstract
With |
withModelVersion(String modelVersion)
Optional parameter to specify the version of the OCR model used for text extraction. |
abstract
With |
withPages(List<String> pages)
Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. |
abstract
With |
withReadingOrder(String readingOrder)
Optional parameter to specify which reading order algorithm should be applied when ordering the extract text elements. |
Method Details
withLanguage
public abstract ComputerVision.ComputerVisionReadDefinitionStages.WithExecute withLanguage(OcrDetectionLanguage language)
The BCP-47 language code of the text in the document. Read supports auto language identification and multi-language documents, so only provide a language code if you would like to force the document to be processed in that specific language. See https://aka.ms/ocr-languages for list of supported languages. Possible values include: 'af', 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb', 'da', 'de', 'en', 'es', 'et', 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil', 'gl', 'gv', 'hni', 'hsb', 'ht', 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea', 'kha', 'kl', 'ko', 'ku', 'kw', 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc', 'rm', 'sco', 'sl', 'sq', 'sv', 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za', 'zh-Hans', 'zh-Hant', 'zu'.
Parameters:
Returns:
withModelVersion
public abstract ComputerVision.ComputerVisionReadDefinitionStages.WithExecute withModelVersion(String modelVersion)
Optional parameter to specify the version of the OCR model used for text extraction. Accepted values are: "latest", "latest-preview", "2021-04-12". Defaults to "latest".
Parameters:
Returns:
withPages
public abstract ComputerVision.ComputerVisionReadDefinitionStages.WithExecute withPages(List
Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a comma.
Parameters:
Returns:
withReadingOrder
public abstract ComputerVision.ComputerVisionReadDefinitionStages.WithExecute withReadingOrder(String readingOrder)
Optional parameter to specify which reading order algorithm should be applied when ordering the extract text elements. Can be either 'basic' or 'natural'. Will default to 'basic' if not specified.
Parameters:
Returns: