Displaying Onnx File in OpenCV

kindly take a look at the dnn samples,
play around a bit, then refine your question ?

and , just to clarify: you want to display the result from object detection, not the network structure itself ?