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

VisionColors 类

Computer vision color provider (supports automatic coloring for 80 class IDs) 计算机视觉颜色提供器(支持80类别ID的自动配色)

Definition

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

备注

Provides distinctive colors for different visualization purposes: 为不同的可视化目的提供独特的颜色: - High-contrast bounding box colors 高对比度边界框颜色 - Semantic segmentation mask colors 语义分割掩膜颜色 - Semi-transparent instance segmentation fill colors 半透明实例分割填充色

Color schemes follow common dataset standards (COCO, ADE20K) 配色方案遵循常见数据集标准(COCO, ADE20K)

构造函数

VisionColors初始化 VisionColors 类的一个新实例

方法

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。)
GenerateAde20kPalette Generates ADE20K semantic segmentation standard color palette 生成ADE20K语义分割标准配色
GenerateCocoPalette Generates COCO dataset 80-class standard color palette 生成COCO数据集80类别标准配色
GetBoundingBoxColor Gets bounding box color (COCO standard high-contrast color) 获取边界框颜色(COCO标准高对比色)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetInstanceColor Gets instance segmentation fill color (semi-transparent bounding box color) 获取实例分割填充色(半透明版边界框颜色)
GetMaskColor Gets semantic segmentation mask color (ADE20K standard color) 获取语义分割掩膜颜色(ADE20K标准色)
GetTypeGets the Type of the current instance.
(继承自 Object。)
HexToScalar 将十六进制颜色字符串转换为OpenCV Scalar
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
SafeClassId Ensures class ID falls within valid range 确保类别ID在有效范围内
ToStringReturns a string that represents the current object.
(继承自 Object。)

字段

_ade20kPalette ADE20K dataset color palette ADE20K数据集调色板
_cocoPalette COCO dataset 80-class color palette COCO数据集80类别调色板

参见