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

From Waveshare Wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Test with Jetson Nano==
+
=Test with Jetson Nano=
===Hardware connection===
+
==Hardware connection==
*Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
+
*Insert the camera cable with the metal side facing the heatsink into the camera port on the Jetson Nano development kit.
*Connect an HDMI LCD to Jetson Nano
+
**Start the Jetson Nano.
===Software setting===
+
*Test camera.
*Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
+
**Open the terminal (press Ctrl+ALT+T shortcut on the keyboard to open the terminal), and enter the following command to test the camera.
*Test the video0
+
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.
 
<pre>
 
<pre>
nvgstcapture-1.0 --sensor-id=0
+
#test video0
#nvgstcapture-1.0
+
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=0
 +
#test video1
 +
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=1
 
</pre>
 
</pre>
*Test the video1
+
*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>
 
<pre>
nvgstcapture-1.0 --sensor-id=1
+
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/
 
</pre>
 
</pre>
<!--
+
2. Installation files:
*Test camera with command:
 
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
 
*Test dual-camera
 
**IF you want to test dual cameras with B01 Developer Kit.You can just add sensor-id=x to the pipeline. x can be 0 or 1.
 
 
<pre>
 
<pre>
#test video0
+
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
DISPLAY=:0.0 gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=3280, height=2464, format=(string)NV12, framerate=(fraction)20/1' ! nvoverlaysink -e
+
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
#test video1
 
DISPLAY=:0.0 gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! 'video/x-raw(memory:NVMM), width=3280, height=2464, format=(string)NV12, framerate=(fraction)20/1' ! nvoverlaysink -e
 
 
</pre>
 
</pre>
-->
+
【Notice】<br/>
*For more information about the Multimedial API of the Jetson, please refer to the document of NVIDIA
+
- 12 of NV12 is a number, not a letter.<br/>
**[https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Faccelerated_gstreamer.html%23wwpID0E0UC0HA MultiMedial Document]
+
 
*If you find that the image captured is reddish. You can try to download .isp file and installed:
+
- The test screen is output to HDMI or DP screen, so when testing, first connect the screen to Jetson Nano.<br/>
wget https://www.waveshare.com/w/upload/e/eb/Camera_overrides.tar.gz
+
 
tar zxvf Camera_overrides.tar.gz
+
*Opencv calls the camera
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/
+
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/>
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
 
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
 

Latest revision as of 02:33, 9 August 2022

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

【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