Show / Hide Table of Contents

Class OcrParams

Parameters to control Optical Character Recognition (OCR) behavior.

Inheritance
System.Object
OcrParams
Implements
IMessage<OcrParams>
System.IEquatable<OcrParams>
IDeepCloneable<OcrParams>
Google.Protobuf.IBufferMessage
IMessage
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.DocumentAI.V1Beta2
Assembly: Google.Cloud.DocumentAI.V1Beta2.dll
Syntax
public sealed class OcrParams : IMessage<OcrParams>, IEquatable<OcrParams>, IDeepCloneable<OcrParams>, IBufferMessage, IMessage

Constructors

OcrParams()

Declaration
public OcrParams()

OcrParams(OcrParams)

Declaration
public OcrParams(OcrParams other)
Parameters
Type Name Description
OcrParams other

Properties

LanguageHints

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.

Declaration
public RepeatedField<string> LanguageHints { get; }
Property Value
Type Description
RepeatedField<System.String>
Back to top