Class OcrParams (1.0.0-beta03)

public sealed class OcrParams : IMessage<OcrParams>, IEquatable<OcrParams>, IDeepCloneable<OcrParams>, IBufferMessage, IMessage

Parameters to control Optical Character Recognition (OCR) behavior.

Inheritance

Object > OcrParams

Namespace

Google.Cloud.DocumentAI.V1Beta2

Assembly

Google.Cloud.DocumentAI.V1Beta2.dll

Constructors

OcrParams()

public OcrParams()

OcrParams(OcrParams)

public OcrParams(OcrParams other)
Parameter
NameDescription
otherOcrParams

Properties

LanguageHints

public RepeatedField<string> LanguageHints { get; }

List of languages to use for OCR. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting language_hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Document processing returns an error if one or more of the specified languages is not one of the supported languages.

Property Value
TypeDescription
RepeatedField<String>