marcoslucianops / DeepStream-Yolo

NVIDIA DeepStream SDK 7.1 / 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
MIT License
1.48k stars 358 forks source link

Pipeline with OpenCV (Jetson Orin AGX) #323

Open Rubi-Tomeu opened 1 year ago

Rubi-Tomeu commented 1 year ago

Hello,

I'm trying to run DeepStream-Yolo in the Jetson Orin AGX to make real-time inference with the YoloV5 model. However, my camera (Alvium 1800 U-811c) isn't detected as V4L2 (I have all drivers correctly installed, but it seems that this camera is not compatible with V4L2). I created an RTSP server and gave it as the source of the Deepstream-app pipeline, but it is working at very low fps and low quality (pixelated).

I also made a python script which reads every frame of the camera with OpenCV, and I wonder if there is a way to build a pipeline that provides the OpenCV image as input to run DeepStream-Yolo in real-time. Could you provide any advise on doing that?

Thank you in advance.

oriaj3 commented 1 year ago

Hello @Rubi-Tomeu in the nvidia developers forum you had an example.

https://forums.developer.nvidia.com/t/opencv-frame-as-input-to-deepstream-python-api-pipeline/202286/9