video_monitor/app/analysis/engines/__init__.py
2026-08-30 22:23:12 +08:00

22 lines
583 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""统一推理引擎抽象层
每个引擎实现 BaseEngine 接口,由 EngineFactory 按 inference_engine 名分发。
所有引擎对外的 detect() 输入为 BGR frame输出为 list[DetectionResult]
与 CameraPipeline 兼容。
支持引擎:
- yolo_pytorch (Yolo-PyTorch主引擎)
- onnxruntime
- openvino
"""
from app.analysis.engines.base import BaseEngine, EngineNotAvailableError, DetectionResult
from app.analysis.engines.factory import EngineFactory
__all__ = [
"BaseEngine",
"EngineNotAvailableError",
"DetectionResult",
"EngineFactory",
]