public sealed class OcrConfig.Types.Hints : IMessage<OcrConfig.Types.Hints>, IEquatable<OcrConfig.Types.Hints>, IDeepCloneable<OcrConfig.Types.Hints>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class OcrConfig.Types.Hints.
public RepeatedField<string> LanguageHints { get; }
List of BCP-47 language codes to use for OCR. In most cases, not
specifying it yields the best results since it enables automatic language
detection. For languages based on the Latin alphabet, setting 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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e class within the Cloud Document AI v1 API, specifically focusing on version 3.15.0 but also listing versions ranging from 1.0.0 to 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e class is used to provide hints to the OCR Engine and is a subclass of \u003ccode\u003eobject\u003c/code\u003e, implementing \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two constructors, \u003ccode\u003eHints()\u003c/code\u003e and \u003ccode\u003eHints(OcrConfig.Types.Hints other)\u003c/code\u003e, allowing for default initialization and copying from an existing instance.\u003c/p\u003e\n"],["\u003cp\u003eOne of the main properties of this class is \u003ccode\u003eLanguageHints\u003c/code\u003e, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e of strings representing BCP-47 language codes to aid the OCR process.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation includes inheritance details, inherited members, the namespace (\u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e), and the assembly (\u003ccode\u003eGoogle.Cloud.DocumentAI.V1.dll\u003c/code\u003e) for the \u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]