Installing Raspberry Pi Camera on Jetson Nano

Since the JetBot uses a Raspberry Pi camera, we also consider using the Raspberry Pi camera as the first choice. Of course, USB cameras have been tested and confirmed to work.

Note that our JetBot has already flashed the system.

Purchase Raspberry Pi Camera

Initially, we tried to buy a Raspberry Pi camera for dozens of yuan from Taobao, but it was confirmed to not work.

Installing Raspberry Pi Camera on Jetson Nano

In fact, the Raspberry Pi camera used by NANO needs to be the IMX219 sensor,

which means the Raspberry Pi Camera Module v2 is acceptable. I checked on Taobao, and the prices are around 150 yuan.

Installing Raspberry Pi Camera on Jetson Nano

Installing Raspberry Pi Camera on Jetson Nano

Install Raspberry Pi Camera

We still use the video from Jetsonhacks to explain how to install the Raspberry Pi camera, as he has demonstrated it in great detail.

First, gently pull up this pin on the CSI interface of the Nano, remember to be careful and do not break it:

Installing Raspberry Pi Camera on Jetson Nano

Installing Raspberry Pi Camera on Jetson Nano

Then insert the ribbon cable of the Raspberry Pi camera, paying attention to the direction and whether it is reversed:

Installing Raspberry Pi Camera on Jetson Nano

Installing Raspberry Pi Camera on Jetson Nano

Fix this pin:

Installing Raspberry Pi Camera on Jetson Nano

Now it is installed, check it:

Installing Raspberry Pi Camera on Jetson Nano

Also, don’t forget to remove the protective film from the camera:

Installing Raspberry Pi Camera on Jetson Nano

Open Your First Camera Image

Check if the Raspberry Pi is installed correctly, we can take a look:

Installing Raspberry Pi Camera on Jetson Nano

This indicates that the Raspberry Pi has been installed correctly.

Input this command:

$ gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e

Installing Raspberry Pi Camera on Jetson Nano

You can successfully open the camera. This requires GStreamer to open a 3820-pixel wide, 2464-pixel high camera stream and display it in a 960-pixel wide, 616-pixel high window.

Let’s test another example:

Installing Raspberry Pi Camera on Jetson Nano

$ python simple_camera.py

simple_camera.py is a Python script that reads data from the camera and displays a window on the screen using OpenCV.

Try it out yourself.

Finally, let’s try a face recognition example:

$ python face_detect.py

Installing Raspberry Pi Camera on Jetson Nano

face_detect.py is a Python script that reads data from the camera and uses Haar Cascades to detect faces and eyes. Let’s see if it can really recognize your face and eyes?

Note that NVIDIA has an online live broadcast on April 29, welcome developers interested in artificial intelligence to participate:

Installing Raspberry Pi Camera on Jetson Nano

More Beginner’s Manuals:

Beginner’s Manual (1):Installing DC Power Supply on Jetson Nano

Filling Pit Series (1): Buying Nano with my own hands, crying to light it up!

Someone compared and tested Google Coral Edge TPU and NVIDIA Jetson Nano, and the result was….

Installing Raspberry Pi Camera on Jetson Nano

Leave a Comment

×