此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 函数
  • plot_class_distribution
  • plot_heatmap
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包
最后更新
Python API: luxonis_ml.data.utils.plot_utils

函数

plot_class_distribution

Python
1def plot_class_distribution(ax: plt.Axes, task_type: str, task_data: list[dict[str, Any]]):
绘制类别分布条形图。参数
  • ax (plt.Axes): 绘图轴。
  • task_type (str): 任务类型。
  • task_data (list[dict[str, Any]]): 类别分布记录。

plot_heatmap

Python
1def plot_heatmap(ax: plt.Axes, fig: plt.Figure, task_type: str, heatmap_data: list[list[float]] | None):
绘制热力图。参数
  • ax (plt.Axes): 绘图轴。
  • fig (plt.Figure): 包含轴的图。
  • task_type (str): 任务类型。
  • heatmap_data (list[list[float]] | None): 要绘制的热力图值。