Template: IMX219-Jetson-Camera-User-Guides

From Waveshare Wiki
Revision as of 02:33, 9 August 2022 by Eng52 (talk | contribs) (→‎Hardware connection)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Test with Jetson Nano

Hardware connection

  • Insert the camera cable with the metal side facing the heatsink into the camera port on the Jetson Nano development kit.
    • Start the Jetson Nano.
  • Test camera.
    • Open the terminal (press Ctrl+ALT+T shortcut on the keyboard to open the terminal), and enter the following command to test the camera.
DISPLAY=:0.0 nvgstcapture-1.0
  • Test the dual camera.
    • If you need to test dual cameras, you can add sensor-id=x to select the camera. x can be 0 or 1.
#test video0
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=0
#test video1
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=1
  • If the camera shooting effect is reddish, you can follow the steps below:

1. Download the camera-override.isp file and extract it to a specific folder:

wget https://www.waveshare.com/w/upload/e/eb/Camera_overrides.tar.gz
tar zxvf Camera_overrides.tar.gz 
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/

2. Installation files:

sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp

- 12 of NV12 is a number, not a letter.

- The test screen is output to HDMI or DP screen, so when testing, first connect the screen to Jetson Nano.

  • Opencv calls the camera

If you want to use the opencv library to call the camera, you can refer to the official jetcam program