public sealed class TextDetectionParams : IMessage<TextDetectionParams>, IEquatable<TextDetectionParams>, IDeepCloneable<TextDetectionParams>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class TextDetectionParams.
Parameters for text detections. This is used to control TEXT_DETECTION and
DOCUMENT_TEXT_DETECTION features.
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.
public bool EnableTextDetectionConfidenceScore { get; set; }
By default, Cloud Vision API only includes confidence score for
DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
score for TEXT_DETECTION as well.
[[["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\u003eTextDetectionParams\u003c/code\u003e class in the Google Cloud Vision v1 API provides parameters to control text and document text detection features.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.Vision.V1\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Cloud.Vision.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt 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, indicating its role in message handling and object management.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eAdvancedOcrOptions\u003c/code\u003e to fine-tune OCR behavior, and \u003ccode\u003eEnableTextDetectionConfidenceScore\u003c/code\u003e to include confidence scores for text detection.\u003c/p\u003e\n"],["\u003cp\u003eThere are 11 documented versions of the \u003ccode\u003eTextDetectionParams\u003c/code\u003e class, ranging from version 2.3.0 to the latest version 3.7.0, that can be viewed.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class TextDetectionParams (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.TextDetectionParams)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.TextDetectionParams) \n\n public sealed class TextDetectionParams : IMessage\u003cTextDetectionParams\u003e, IEquatable\u003cTextDetectionParams\u003e, IDeepCloneable\u003cTextDetectionParams\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class TextDetectionParams.\n\nParameters for text detections. This is used to control TEXT_DETECTION and\nDOCUMENT_TEXT_DETECTION features. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TextDetectionParams \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextDetectionParams](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextDetectionParams), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextDetectionParams](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextDetectionParams), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TextDetectionParams](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextDetectionParams), [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.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### TextDetectionParams()\n\n public TextDetectionParams()\n\n### TextDetectionParams(TextDetectionParams)\n\n public TextDetectionParams(TextDetectionParams 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.\nCurrent valid 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### EnableTextDetectionConfidenceScore\n\n public bool EnableTextDetectionConfidenceScore { get; set; }\n\nBy default, Cloud Vision API only includes confidence score for\nDOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence\nscore for TEXT_DETECTION as well."]]