Getting Started with AI on Jetson Nano

I got a class for Getting Started with AI on Jetson Nano V2 , and it use docker to do.
url :

My problem is I fixed my csi camera reverse on robot , and I got the image also be reverse.

How can I change image direction ? Or can add flip-method in class jetcam(both usb and camera) with docker?

Does the docker use gstreamer?
You can add nvvidconv flip-method=1 to the gstreamer pipeline. like below,

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv flip-method=2 ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvoverlaysink -e
1 Like

Hi @kjoelovelife, as @ShaneCCC pointed out, you should be able to add that modification to this line of jetcam’s file:

You want to change nvvidconv on that line to nvvidconv flip-method=1 (or experiment with which flip-method you want)

1 Like

Thanks ShaneCCC and dusty_nv , it can do !

I have another question , can I modified jetcam in container?

Yes, you can - and after you make the modification, you might want to use docker commit command to save your changes to a new container tag. Remember to launch the container that you committed the next time you launch the container, rather than the original.

1 Like

Thanks for help !