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 documentation for the \u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e class within the Google Cloud Document AI v1 API, specifically detailing its use in the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e is 3.19.0, and the page lists all previous versions down to 1.0.0 for reference and compatibility purposes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOcrConfig.Types.Hints\u003c/code\u003e class serves as a way to provide hints to the OCR engine, as it implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLanguageHints\u003c/code\u003e property, which is a list of BCP-47 language codes, is used to assist OCR in detecting the language, though it's generally recommended to rely on automatic detection.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHints\u003c/code\u003e class includes two constructors: a default constructor \u003ccode\u003eHints()\u003c/code\u003e and a copy constructor \u003ccode\u003eHints(Hints other)\u003c/code\u003e, which allows for the creation of new instances or copies of existing \u003ccode\u003eHints\u003c/code\u003e objects.\u003c/p\u003e\n"]]],[],null,[]]