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 :
https://courses.nvidia.com/courses/course-v1:DLI+S-RX-02+V2/about

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 csi_camera.py file:

https://github.com/NVIDIA-AI-IOT/jetcam/blob/508ff3a402c5a0449a8d5776c05d2d17d6a87f46/jetcam/csi_camera.py#L32

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 !