SECUREXSECURITY ENGINEERINGNVR 文档

物体/目标检测器

检测器决定目标推理运行在哪类 AI 硬件或运行时上。

选择建议

后端适合场景备注
Coral EdgeTPU低功耗稳定检测适合 SSD EdgeTPU 模型
OpenVINOIntel 平台CPU / iGPU 视模型支持而定
ONNX / YOLO自定义模型配合 Local Training 使用
TensorRTNVIDIA GPU需要匹配 CUDA / TensorRT 环境

Coral PCIe

detectors:
  coral:
    type: edgetpu
    device: pci

OpenVINO

detectors:
  ov:
    type: openvino
    device: CPU

ONNX

detectors:
  onnx:
    type: onnx

Object Detectors

The object detector runs neural-network inference. Hardware, runtime, model format, tensor layout, pixel format, data type, input dimensions, and label map must agree. A detector process starting successfully does not prove the model configuration is correct.

Compatibility matrix

ItemMust match
runtime / typeOpenVINO, EdgeTPU, ONNX, TensorRT, RKNN, Hailo, etc.
model pathA model format supported by that runtime.
width / heightThe model input shape.
input_tensorFor example NHWC or NCHW.
input_pixel_formatFor example RGB or BGR.
input_dtypeFloat/int type expected by the model.
labelmapClass indices and order used during training.

OpenVINO example

detectors:
  ov:
    type: openvino
    device: CPU

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  path: /openvino-model/ssdlite_mobilenet_v2.xml
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

Performance

Watch inference speed, detector utilization, and detect FPS. If inference cannot keep up across cameras, reduce detection workload, choose a faster model, or add/change acceleration.

Troubleshooting order

  1. Confirm the device is visible inside the container.
  2. Confirm the runtime loads the model without shape/dtype/layer errors.
  3. Verify label-map ordering.
  4. Test one low-FPS camera before scaling out.

CPU detector

CPU inference is useful for testing and small workloads. Multi-camera production systems generally benefit from dedicated inference hardware or GPU/NPU acceleration so inference does not compete with video decoding.

Detectores de objetos

El detector ejecuta la inferencia de la red neuronal. Hardware, runtime, formato de modelo, layout del tensor, formato de píxel, tipo de datos, dimensiones y label map deben coincidir.

Compatibilidad

ElementoDebe coincidir
runtime / typeOpenVINO, EdgeTPU, ONNX, TensorRT, RKNN, Hailo, etc.
model pathFormato admitido por el runtime.
width / heightDimensiones de entrada.
input_tensorNHWC o NCHW.
input_pixel_formatRGB o BGR.
input_dtypeTipo esperado.
labelmapÍndices/orden de clases.

Ejemplo OpenVINO

detectors:
  ov:
    type: openvino
    device: CPU

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  path: /openvino-model/ssdlite_mobilenet_v2.xml
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

Rendimiento

Observe inference speed, utilización y detect FPS. Si no se mantiene el ritmo, reduzca carga o use un acelerador/modelo más eficiente.

Diagnóstico

  1. Compruebe el dispositivo dentro del contenedor.
  2. Compruebe carga del modelo.
  3. Verifique label map.
  4. Pruebe una cámara a bajo FPS antes de escalar.

CPU

CPU sirve para pruebas y cargas pequeñas; varias cámaras suelen beneficiarse de aceleración dedicada.

输入关键词开始搜索