Flipped output frame

I’m trying to use this repo for object detection: https://github.com/dusty-nv/jetson-inference by using command:

python3 detectnet-camera.py --network=ssd-mobilenet-v1

but I got flipped output frames like this: https://1drv.ms/u/s!AoWJ24OtfQT1ge5CGVuoqQTsVOyeIA?e=LdbAgH. But everything works fine when I try to read video by using Jetcam repo: https://github.com/NVIDIA-AI-IOT/jetcam. How can I resolve it?

hello thegrimreapers95,

please access L4T Accelerated GStreamer User Guide through download center.
please refer to session [VIDEO ROTATION WITH GSTREAMER-1.0], you’ll need to add flip-method options into video converter elements.
here’s an example to rotate the camera preview frame 180 degrees in gstreamer pipeline,

$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=2592, height=1944, framerate=30/1, format=NV12' ! nvvidconv flip-method=2 ! 'video/x-raw(memory:NVMM), format=(string)NV12, width=1920, height=1080' ! nvoverlaysink

you may also check $ gst-inspect-1.0 nvvidconv for details,
for example,

flip-method         : video flip methods
                        flags: readable, writable, controllable
                        Enum "GstNvVideoFlipMethod" Default: 0, "none"
                           (0): none             - Identity (no rotation)
                           (1): counterclockwise - Rotate counter-clockwise 90 degrees
                           (2): rotate-180       - Rotate 180 degrees
                           (3): clockwise        - Rotate clockwise 90 degrees
                           (4): horizontal-flip  - Flip horizontally
                           (5): upper-right-diagonal - Flip across upper right/lower left diagonal
                           (6): vertical-flip    - Flip vertically
                           (7): upper-left-diagonal - Flip across upper left/lower right diagonal