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

Pipeline 类

Main pipeline for computer vision model inference and visualization 计算机视觉模型推理和可视化的主流水线

Definition

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

备注

Encapsulates model inference operations with built-in visualization capabilities. Supports multiple YOLO versions (v5-v13) and tasks (detection, segmentation, pose etc.). 封装了模型推理操作并内置可视化能力。 支持多个YOLO版本(v5-v13)和任务(检测、分割、姿态等)。

Implements both synchronous and asynchronous operations with proper resource cleanup. 实现了同步和异步操作,并包含正确的资源清理。

构造函数

Pipeline(ModelType, IConfig) Initializes pipeline with existing configuration 使用现有配置初始化流水线
Pipeline(ModelType, String, InferenceBackend, DeviceType) Initializes pipeline with model path and configuration 使用模型路径和配置初始化流水线

方法

Dispose Releases all resources 释放所有资源
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
Finalize
(重写 ObjectFinalize)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
Predict(ImageRgb24) Performs synchronous inference 执行同步推理
Predict(Mat) 
PredictAndDrawing(ImageRgb24) Performs synchronous inference with visualization 执行带可视化的同步推理
PredictAndDrawing(Mat) 
PredictAsync(ImageRgb24) Performs asynchronous inference 执行异步推理
PredictAsync(Mat) 
PredictAsyncAndDrawing(ImageRgb24) Performs asynchronous inference with visualization 执行带可视化的异步推理
PredictAsyncAndDrawing(Mat) 
ToStringReturns a string that represents the current object.
(继承自 Object。)

字段

参见