How to use onnx_to_tensorrt.py with a webcam

How to use onnx_to_tensorrt.py with a webcam

A sample of TensorRT, “/usr/src/tensorrt/samples/python/yolov3_onnx/onnx_to_tensorrt.py”, is used.
I converted Yolov3-tiny.weight to onnx and made Yolov3-tiny.trt.

I want to use a webcam to perform real-time reasoning. What can I do?

I’m using Jetson Nano ( JetPack 4.2.2.).

Hi,

Please refer to below samples in case it helps:


Thanks

My jkjung-avt/tensorrt_demos includes TensorRT implementations for yolov3 and yolov4 models. It could support USB webcam, IP cam ,or image/video file inputs.