Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

DetResult 类

Represents object detection results with bounding box information 表示包含边界框信息的物体检测结果

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class DetResult : Result
Inheritance
Object    Result    DetResult
Derived

备注

Extends base Result class with spatial localization capabilities through bounding box coordinates.

通过边界框坐标扩展基础Result类的空间定位能力。

示例

Basic usage:
C#
var detection = new DetResult {
    Id = 42,
    Category = "person",
    Confidence = 0.87f,
    Bounds = new Rect(100, 200, 50, 80)
};

构造函数

DetResult Initializes a new detection result with proper type configuration 初始化一个新的检测结果,自动配置正确的结果类型

属性

Bounds Bounding box coordinates relative to source image 相对于源图像的边界框坐标
Category Category/class name of the result 结果的类别/分类名称
(继承自 Result。)
Confidence Confidence score between 0 and 1 置信度分数(0到1之间)
(继承自 Result。)
Id Numeric identifier of the result 结果的数字标识符
(继承自 Result。)
ImageSize Size of the source input image 输入源图像的尺寸
(继承自 Result。)
Type Type of the inference result 推理结果的类型
(继承自 Result。)

方法

Clone Creates a deep copy of this detection result 创建此检测结果的深拷贝
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToString Returns formatted string representation including bounding box 返回包含边界框信息的格式化字符串表示
(重写 ResultToString)
UpdateCategory Updates the category from a categories array 从类别数组中更新类别
(继承自 Result。)

参见

引用

[!:ResultType.Detectiony]