public class KeyPointResult : DetResult,
IEnumerable<KeyPoint>, IEnumerable
Inherits from DetResult while adding keypoint-specific functionality. Used for human pose estimation, facial landmarks, and object part detection.
继承自DetResult同时增加了关键点特定功能。 用于人体姿态估计、面部关键点和物体部件检测。
var kpResult = new KeyPointResult {
Bounds = new Rect(100, 100, 200, 300),
KeyPoints = new KeyPoint[] {
new KeyPoint { Point = new Point(120, 130), Confidence = 0.95f },
new KeyPoint { Point = new Point(150, 140), Confidence = 0.92f }
}
};
KeyPointResult | Initializes a new empty keypoint result 初始化一个新的空关键点结果 |
Bounds |
Bounding box coordinates relative to source image
相对于源图像的边界框坐标
(继承自 DetResult。) |
Category |
Category/class name of the result
结果的类别/分类名称
(继承自 Result。) |
Confidence |
Confidence score between 0 and 1
置信度分数(0到1之间)
(继承自 Result。) |
Count | Returns the number of detected keypoints 返回检测到的关键点数量 |
Id |
Numeric identifier of the result
结果的数字标识符
(继承自 Result。) |
ImageSize |
Size of the source input image
输入源图像的尺寸
(继承自 Result。) |
Item | Provides indexed access to individual keypoints 提供对单个关键点的索引访问 |
KeyPoints | Array of detected keypoints 检测到的关键点数组 |
Type |
Type of the inference result
推理结果的类型
(继承自 Result。) |
Clone | Creates a deep copy of this keypoint result 创建此关键点结果的深拷贝 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
GetAverageConfidence | Calculates average confidence score across all keypoints 计算所有关键点的平均置信度分数 |
GetEnumerator | Gets enumerator for iterating through keypoints 获取用于遍历关键点的枚举器 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
ToString |
Returns formatted string representation of all keypoints
返回所有关键点的格式化字符串表示
(重写 DetResultToString) |
UpdateCategory |
Updates the category from a categories array
从类别数组中更新类别
(继承自 Result。) |