mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
This patch extends the existing ONNX Runtime DNN backend with object detection support via dnn_detect and removes the single-output restriction in dnn_processing. Example usage: # SSD detection (single output, DirectML) ffmpeg -i input.mp4 -vf "scale=300:300,format=rgb24,dnn_detect=dnn_backend=onnx:model=ssd.onnx:model_type=ssd:device=dml:device_id=0" -f null - # YOLOv3 detection (two outputs, CPU) ffmpeg -i input.mp4 -vf "scale=416:416,format=rgb24,dnn_detect=dnn_backend=onnx:model=yolov3.onnx:output=yolo_13&yolo_26:model_type=yolov3:nb_classes=80:anchors=116&90&156&198&373&326&30&61&62&45&59&119" -f null - Signed-off-by: younengxiao <steven.xiao@amd.com>