public class ObbResult : Result
Specialized result type for detecting rotated objects where axis-aligned bounding boxes would be suboptimal. Commonly used in aerial imagery, document analysis, and scene text detection.
专用于检测旋转物体的结果类型,适用于传统轴对齐边界框效果不佳的场景。 常用于航拍图像、文档分析和场景文本检测。
var obbResult = new ObbResult {
Bounds = new RotatedRect(
center: new PointF(100.5f, 200.5f),
size: new SizeF(80, 40),
angle: 30),
Confidence = 0.95f,
Category = "vehicle"
};
ObbResult | Initializes a new oriented bounding box result 初始化一个新的方向边界框结果 |
Bounds | Oriented bounding box represented as rotated rectangle 表示为旋转矩形(OBB)的方向边界框 |
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 OBB result 创建此OBB结果的深拷贝 |
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。) |
GetBoundingRect | Gets the axis-aligned bounding box (AABB) enclosing this OBB 获取包含此OBB的轴对齐边界框(AABB) |
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 including OBB parameters
返回包含OBB参数的格式化字符串表示
(重写 ResultToString) |
UpdateCategory |
Updates the category from a categories array
从类别数组中更新类别
(继承自 Result。) |