public class Result
Contains common properties for all result types including classification, detection, segmentation etc.
包含所有结果类型的通用属性,包括分类、检测、分割等。
var result = new Result {
Type = ResultType.Classification,
Confidence = 0.95f,
Category = "dog"
};
Result | 初始化 Result 类的一个新实例 |
Category | Category/class name of the result 结果的类别/分类名称 |
Confidence | Confidence score between 0 and 1 置信度分数(0到1之间) |
Id | Numeric identifier of the result 结果的数字标识符 |
ImageSize | Size of the source input image 输入源图像的尺寸 |
Type | Type of the inference result 推理结果的类型 |
Clone | Creates a deep copy of this 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。) |
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 the result
返回结果的格式化字符串表示
(重写 ObjectToString) |
UpdateCategory | Updates the category from a categories array 从类别数组中更新类别 |