public RepeatedField<string> AdvancedOcrOptions { get; }
A list of advanced OCR options to further fine-tune OCR behavior. Current
valid values are:
legacy_layout: a heuristics layout detection algorithm, which serves as
an alternative to the current ML-based layout detection algorithm.
Customers can choose the best suitable layout algorithm based on their
situation.
Turn on font identification model and return font style information.
Deprecated, use
[PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info]
instead.
public bool EnableImageQualityScores { get; set; }
Enables intelligent document quality scores after OCR. Can help with
diagnosing why OCR responses are of poor quality for a given input.
Adds additional latency comparable to regular OCR to the process call.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eOcrConfig\u003c/code\u003e class in the Cloud Document AI v1beta3 API provides configuration options for document OCR processing.\u003c/p\u003e\n"],["\u003cp\u003eIt offers various features such as advanced OCR options, font style identification, character box detection control, image quality scoring, and PDF parsing enhancements.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering methods for message manipulation, comparison, and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eThere are several properties to configure, including \u003ccode\u003eAdvancedOcrOptions\u003c/code\u003e, \u003ccode\u003eComputeStyleInfo\u003c/code\u003e (deprecated), \u003ccode\u003eDisableCharacterBoxesDetection\u003c/code\u003e, \u003ccode\u003eEnableImageQualityScores\u003c/code\u003e, \u003ccode\u003eEnableNativePdfParsing\u003c/code\u003e, \u003ccode\u003eEnableSymbol\u003c/code\u003e, \u003ccode\u003eHints\u003c/code\u003e, and \u003ccode\u003ePremiumFeatures\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is version 2.0.0-beta23, with previous versions including 2.0.0-beta22 and 1.0.0-beta04 also available.\u003c/p\u003e\n"]]],[],null,["# Cloud Document AI v1beta3 API - Class OcrConfig (2.0.0-beta26)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta26 (latest)](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.OcrConfig)\n- [2.0.0-beta25](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/2.0.0-beta25/Google.Cloud.DocumentAI.V1Beta3.OcrConfig)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/1.0.0-beta04/Google.Cloud.DocumentAI.V1Beta3.OcrConfig) \n\n public sealed class OcrConfig : IMessage\u003cOcrConfig\u003e, IEquatable\u003cOcrConfig\u003e, IDeepCloneable\u003cOcrConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Document AI v1beta3 API class OcrConfig.\n\nConfig for Document OCR. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OcrConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OcrConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.OcrConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OcrConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.OcrConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OcrConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.OcrConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DocumentAI.V1Beta3](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.DocumentAI.V1Beta3.dll\n\nConstructors\n------------\n\n### OcrConfig()\n\n public OcrConfig()\n\n### OcrConfig(OcrConfig)\n\n public OcrConfig(OcrConfig other)\n\nProperties\n----------\n\n### AdvancedOcrOptions\n\n public RepeatedField\u003cstring\u003e AdvancedOcrOptions { get; }\n\nA list of advanced OCR options to further fine-tune OCR behavior. Current\nvalid values are:\n\n- `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.\n\n### ComputeStyleInfo\n\n [Obsolete]\n public bool ComputeStyleInfo { get; set; }\n\nTurn on font identification model and return font style information.\nDeprecated, use\n\\[PremiumFeatures.compute_style_info\\]\\[google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info\\]\ninstead.\n\n### DisableCharacterBoxesDetection\n\n public bool DisableCharacterBoxesDetection { get; set; }\n\nTurn off character box detector in OCR engine. Character box detection is\nenabled by default in OCR 2.0 (and later) processors.\n\n### EnableImageQualityScores\n\n public bool EnableImageQualityScores { get; set; }\n\nEnables intelligent document quality scores after OCR. Can help with\ndiagnosing why OCR responses are of poor quality for a given input.\nAdds additional latency comparable to regular OCR to the process call.\n\n### EnableNativePdfParsing\n\n public bool EnableNativePdfParsing { get; set; }\n\nEnables special handling for PDFs with existing text information. Results\nin better text extraction quality in such PDF inputs.\n\n### EnableSymbol\n\n public bool EnableSymbol { get; set; }\n\nIncludes symbol level OCR information if set to true.\n\n### Hints\n\n public OcrConfig.Types.Hints Hints { get; set; }\n\nHints for the OCR model.\n\n### PremiumFeatures\n\n public OcrConfig.Types.PremiumFeatures PremiumFeatures { get; set; }\n\nConfigurations for premium OCR features."]]