Share via


OcrSkill Class

Definition

A skill that extracts text from image files. https://docs.microsoft.com/azure/search/cognitive-search-skill-ocr

[Newtonsoft.Json.JsonObject("#Microsoft.Skills.Vision.OcrSkill")]
public class OcrSkill : Microsoft.Azure.Search.Models.Skill
[<Newtonsoft.Json.JsonObject("#Microsoft.Skills.Vision.OcrSkill")>]
type OcrSkill = class
    inherit Skill
Public Class OcrSkill
Inherits Skill
Inheritance
OcrSkill
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

OcrSkill()

Initializes a new instance of the OcrSkill class.

OcrSkill(IList<InputFieldMappingEntry>, IList<OutputFieldMappingEntry>, String, String, String, Nullable<TextExtractionAlgorithm>, Nullable<OcrSkillLanguage>, Nullable<Boolean>)

Initializes a new instance of the OcrSkill class.

Properties

Context

Gets or sets represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.

(Inherited from Skill)
DefaultLanguageCode

Gets or sets a value indicating which language code to use. Default is en. Possible values include: 'zh-Hans', 'zh-Hant', 'cs', 'da', 'nl', 'en', 'fi', 'fr', 'de', 'el', 'hu', 'it', 'ja', 'ko', 'nb', 'pl', 'pt', 'ru', 'es', 'sv', 'tr', 'ar', 'ro', 'sr-Cyrl', 'sr-Latn', 'sk'

Description

Gets or sets the description of the skill which describes the inputs, outputs, and usage of the skill.

(Inherited from Skill)
Inputs

Gets or sets inputs of the skills could be a column in the source data set, or the output of an upstream skill.

(Inherited from Skill)
Name

Gets or sets the name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.

(Inherited from Skill)
Outputs

Gets or sets the output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill.

(Inherited from Skill)
ShouldDetectOrientation

Gets or sets a value indicating to turn orientation detection on or not. Default is false.

TextExtractionAlgorithm

Gets or sets a value indicating which algorithm to use for extracting text. Default is printed. Possible values include: 'printed', 'handwritten'

Methods

Validate()

Validate the object.

Applies to