How to use ultralytics models in opencv/samples/dnn/object_detection.cpp

Hello,

On OpenCV 4.14.0-pre, I tried ultralytics models yolov5lu.pt, yolov5nu.pt yolov8l.pt, yolov8n.pt, yolo11l.pt, yolo11n.pt, yolo26l.pt, yolo26n.pt (downloaded from ultralytics), which I have converted to onnx with model.export(format=“onnx”,dynamic=False,opset=12,simplify=True).

All models have outLayerType “Identity”, which is not supported by the function postprocess in file opject_detection.cpp (line 407).

Is there an existing sample code working with these models? How to do to use cv::dnn for object detection?

Best regards

Paul