public sealed class LabelDetectionConfig : IMessage<LabelDetectionConfig>, IEquatable<LabelDetectionConfig>, IDeepCloneable<LabelDetectionConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Video Intelligence v1 API class LabelDetectionConfig.
public float FrameConfidenceThreshold { get; set; }
The confidence threshold we perform filtering on the labels from
frame-level detection. If not set, it is set to 0.4 by default. The valid
range for this threshold is [0.1, 0.9]. Any value set outside of this
range will be clipped.
Note: For best results, follow the default threshold. We will update
the default threshold everytime when we release a new model.
Whether the video has been shot from a stationary (i.e., non-moving)
camera. When set to true, might improve detection accuracy for moving
objects. Should be used with SHOT_AND_FRAME_MODE enabled.
public float VideoConfidenceThreshold { get; set; }
The confidence threshold we perform filtering on the labels from
video-level and shot-level detections. If not set, it's set to 0.3 by
default. The valid range for this threshold is [0.1, 0.9]. Any value set
outside of this range will be clipped.
Note: For best results, follow the default threshold. We will update
the default threshold everytime when we release a new model.
[[["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\u003eLabelDetectionConfig\u003c/code\u003e class is part of the Google Cloud Video Intelligence v1 API, specifically used for configuring label detection in videos.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eLabelDetectionConfig\u003c/code\u003e is 3.4.0, with several previous versions available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties to adjust detection behavior such as \u003ccode\u003eFrameConfidenceThreshold\u003c/code\u003e, \u003ccode\u003eVideoConfidenceThreshold\u003c/code\u003e, \u003ccode\u003eLabelDetectionMode\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, and \u003ccode\u003eStationaryCamera\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConfidence thresholds for both frame-level and video/shot-level label detections can be set, with default values and recommended ranges provided.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModel\u003c/code\u003e property allows users to select between "builtin/stable" and "builtin/latest" for the label detection model.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Video Intelligence v1 API - Class LabelDetectionConfig (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.3.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.2.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.1.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.0.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.3.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.2.0/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig) \n\n public sealed class LabelDetectionConfig : IMessage\u003cLabelDetectionConfig\u003e, IEquatable\u003cLabelDetectionConfig\u003e, IDeepCloneable\u003cLabelDetectionConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Video Intelligence v1 API class LabelDetectionConfig.\n\nConfig for LABEL_DETECTION. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LabelDetectionConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LabelDetectionConfig](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LabelDetectionConfig](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LabelDetectionConfig](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.LabelDetectionConfig), [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.VideoIntelligence.V1](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VideoIntelligence.V1.dll\n\nConstructors\n------------\n\n### LabelDetectionConfig()\n\n public LabelDetectionConfig()\n\n### LabelDetectionConfig(LabelDetectionConfig)\n\n public LabelDetectionConfig(LabelDetectionConfig other)\n\nProperties\n----------\n\n### FrameConfidenceThreshold\n\n public float FrameConfidenceThreshold { get; set; }\n\nThe confidence threshold we perform filtering on the labels from\nframe-level detection. If not set, it is set to 0.4 by default. The valid\nrange for this threshold is \\[0.1, 0.9\\]. Any value set outside of this\nrange will be clipped.\nNote: For best results, follow the default threshold. We will update\nthe default threshold everytime when we release a new model.\n\n### LabelDetectionMode\n\n public LabelDetectionMode LabelDetectionMode { get; set; }\n\nWhat labels should be detected with LABEL_DETECTION, in addition to\nvideo-level labels or segment-level labels.\nIf unspecified, defaults to `SHOT_MODE`.\n\n### Model\n\n public string Model { get; set; }\n\nModel to use for label detection.\nSupported values: \"builtin/stable\" (the default if unset) and\n\"builtin/latest\".\n\n### StationaryCamera\n\n public bool StationaryCamera { get; set; }\n\nWhether the video has been shot from a stationary (i.e., non-moving)\ncamera. When set to true, might improve detection accuracy for moving\nobjects. Should be used with `SHOT_AND_FRAME_MODE` enabled.\n\n### VideoConfidenceThreshold\n\n public float VideoConfidenceThreshold { get; set; }\n\nThe confidence threshold we perform filtering on the labels from\nvideo-level and shot-level detections. If not set, it's set to 0.3 by\ndefault. The valid range for this threshold is \\[0.1, 0.9\\]. Any value set\noutside of this range will be clipped.\nNote: For best results, follow the default threshold. We will update\nthe default threshold everytime when we release a new model."]]