CSI Camera Flip method for Python Deepstream

Please provide complete information as applicable to your setup.

• Hardware Platform Jetson Nano 4GB
• DeepStream Version - 5.0.1
• JetPack Version (valid for Jetson only) - 4.4
• TensorRT Version - 7.1.3.0
• Issue Type - questions

Hello

I was able to modify the deepstream-test1-usbcam sample app to run CSI camera but the feed is inverted and flip-method property is not defined, is there a way to flip the image 180 degree.

Thanks

Hi,
So you should use nvarguscamerasrc plugin and it is open source. Please refer to patch in the post:

You may check how to do rotation through NvBufSurface APIs and apply it to nvarguscamerasrc.

The source code is in
L4T | NVIDIA Developer
L4T Driver Package (BSP) Sources

Hi,
I am using nvarguscamerasrc from this post

Did the changes in sources\apps\apps\common\src\deepstream_source_bin.c and saved it
Did the changes in sources\apps\sample_apps\deepstream-app\Makefile and make

But how will it reflect on my python app ?

Hi,
For now we support using NvBufSurface APIs in C code. Not supported in python code. If you use python, please download the source code of gst-nvarguscamerasrc, apply the rotation in the source, and rebuild/replace the prebuilt lib in

/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so