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 latest version of the \u003ccode\u003eTextDetectionParams\u003c/code\u003e documentation is 3.7.0, with several older versions available for reference, ranging back to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextDetectionParams\u003c/code\u003e is a class in the Google Cloud Vision v1 API, utilized for controlling \u003ccode\u003eTEXT_DETECTION\u003c/code\u003e and \u003ccode\u003eDOCUMENT_TEXT_DETECTION\u003c/code\u003e features.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextDetectionParams\u003c/code\u003e class 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\u003eAdvancedOcrOptions\u003c/code\u003e property of \u003ccode\u003eTextDetectionParams\u003c/code\u003e allows for fine-tuning OCR behavior with options such as \u003ccode\u003elegacy_layout\u003c/code\u003e, while \u003ccode\u003eEnableTextDetectionConfidenceScore\u003c/code\u003e allows including confidence scores for \u003ccode\u003eTEXT_DETECTION\u003c/code\u003e results.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the class \u003ccode\u003eTextDetectionParams()\u003c/code\u003e, one being a default and another accepting a parameter of type \u003ccode\u003eTextDetectionParams\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]