Difference between revisions of "Template:IMX219-Jetson-Camera-User-Guides"

From Waveshare Wiki
Jump to: navigation, search
m (Text replacement - "https://www.waveshare.com/w/upload/" to "https://files.waveshare.com/upload/")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===Hardware connection===
+
=Test with Jetson Nano=
*Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
+
==Hardware connection==
*Connect a HDMI LCD to Jetson Nano
+
*Insert the camera cable with the metal side facing the heatsink into the camera port on the Jetson Nano development kit.
===Software setting===
+
**Start the Jetson Nano.
*Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
+
*Test camera.
*Test camera with command:
+
**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 gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=3280, height=2464, format=(string)NV12, framerate=(fraction)20/1' ! nvoverlaysink -e
+
DISPLAY=:0.0 nvgstcapture-1.0
*If you find that the image captured is reddish. You can try to download .isp file and installed:
+
*Test the dual camera.
wget https://www.waveshare.com/w/upload/e/eb/Camera_overrides.tar.gz
+
**If you need to test dual cameras, you can add sensor-id=x to select the camera. x can be 0 or 1.
tar zxvf Camera_overrides.tar.gz  
+
<pre>
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/
+
#test video0
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
+
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=0
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
+
#test video1
 +
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=1
 +
</pre>
 +
*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:<br/>
 +
<pre>
 +
wget https://files.waveshare.com/upload/e/eb/Camera_overrides.tar.gz
 +
tar zxvf Camera_overrides.tar.gz  
 +
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/
 +
</pre>
 +
2. Install files:
 +
<pre>
 +
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
 +
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
 +
</pre>
 +
【Notice】<br/>
 +
- 12 of NV12 is a number, not a letter.<br/>
  
==Selection Guide==
+
- The test screen is output to HDMI or DP screen, so when testing, first connect the screen to Jetson Nano.<br/>
{|class="wikitable"
+
 
!Product!!Pixels!!Sensor!!Dual Len!!Infrared!!Angle of View (Diagonal)(degree)!!Afterture (F)!!Focal Length (MM)!!PCBA!!Suit for
+
*Opencv calls the camera
|-
+
If you want to use the opencv library to call the camera, you can refer to [https://github.com/NVIDIA-AI-IOT/jetcam the official jetcam program]<br/>
|[https://www.waveshare.com/rpi-camera-v2.htm RPi Camera]
 
|rowspan="11"|8 Mega
 
|rowspan="11"|IMX219
 
|rowspan="10"|×
 
|×||62.2||2.0||3.04||√||Raspberry Pi, Jetson Nano
 
|-
 
|[https://www.waveshare.com/rpi-noir-camera-v2.htm RPi NoIR Camera V2]||√||62.2||2.0||3.04||√||Raspberry Pi, Jetson Nano
 
|-
 
|[https://www.waveshare.com/IMX219-77-Camera.htm IMX219-77 Camera]||×||77||2.0||2.96||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-77IR-Camera.htm IMX219-77IR]||√||77||2.0||2.96||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-120-Camera.htm IMX219-120 Camera]||×||120||2.2||1.88||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-160-Camera.htm IMX219-160 Camera]||×||160||2.35||3.15||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-160IR-Camera.htm IMX219-160IR Camera]||√||160||2.35||3.15||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-170-Camera.htm IMX219-170 Camera]||×||170||2.0||0.87||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-200-Camera.htm IMX219-200 Camera]||×||200||2.0||3.15||√||Jetson Nano, CM3/3+
 
|-
 
|[https://www.waveshare.com/IMX219-D160.htm IMX219-D160]||×||160||2.35||3.15||×||Raspberry Pi, Jetson Nano
 
|-
 
|[https://www.waveshare.com/imx219-83-Stereo-camera.htm IMX219-83 Stereo Camera]||√||×||83||NA||2.6||√||Jetson Nano, CM3/3+
 
|}
 

Latest revision as of 06:39, 2 September 2023

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://files.waveshare.com/upload/e/eb/Camera_overrides.tar.gz
tar zxvf Camera_overrides.tar.gz 
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/

2. Install files:

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

【Notice】
- 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