public class Pipeline : IDisposableEncapsulates 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 释放所有资源 |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| Finalize | (重写 ObjectFinalize) |
| 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。) |
| 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) | |
| ToString | Returns a string that represents the current object. (继承自 Object。) |