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

VisualizeOptions 类

Configuration options for visualization rendering 可视化渲染的配置选项

Definition

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

备注

Provides customizable settings for: 提供可自定义的设置: - Mask transparency and confidence thresholds 掩膜透明度和置信度阈值 - Font styling and sizing 字体样式和大小 - Drawing parameters like borders 绘制参数如边框

Supports automatic scaling based on ratio for responsive visualization 支持基于比例的自适应缩放

构造函数

VisualizeOptions Initializes visualization options with scaling ratio 使用缩放比例初始化可视化选项

属性

BorderThickness Thickness of border lines (will be scaled by ratio) 边框线条粗细(会被比例缩放)
colors Color provider for visualization elements 可视化元素的颜色提供器
Colors 
FontFamily Selected font family for text rendering 用于文本渲染的字体家族
FontHeight Calculated height of the current font 当前字体的计算高度
FontSize Base font size (will be scaled by ratio) 基础字体大小(会被比例缩放)
FontType Generated font instance from selected family and size 根据选择的字体家族和大小生成的字体实例
KeyPointMinConfidence 
MaskAlpha Alpha transparency value for masks (0-1) 掩膜的透明度值(0-1)
MaskMinConfidence 
MaskMinimumConfidence Minimum confidence threshold for rendering masks 渲染掩膜的最低置信度阈值
PointDrawThreshold Confidence threshold for rendering points 渲染关键点的置信度阈值

方法

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。)
GetDefaultFontFamily Gets the most appropriate default font family across platforms 获取跨平台最合适的默认字体家族
GetFontHeight Calculates the actual rendered height of a font 计算字体实际渲染高度
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToStringReturns a string that represents the current object.
(继承自 Object。)

参见