Difference between revisions of "Template:IMX219-Jetson-Camera-User-Guides"
From Waveshare Wiki
Line 4: | Line 4: | ||
**Start the Jetson Nano. | **Start the Jetson Nano. | ||
*Test camera. | *Test camera. | ||
− | **Open the terminal (press Ctrl+ALT+T shortcut on the keyboard to open the terminal), enter the following command to test the 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 | DISPLAY=:0.0 nvgstcapture-1.0 | ||
*Test the dual camera. | *Test the dual camera. | ||
Line 21: | Line 21: | ||
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/ | sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/ | ||
</pre> | </pre> | ||
− | + | 2. Installation files: | |
<pre> | <pre> | ||
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp | sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp | ||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
【Notice】<br/> | 【Notice】<br/> | ||
− | - 12 of NV12 is a number not a letter.<br/> | + | - 12 of NV12 is a number, not a letter.<br/> |
- The test screen is output to HDMI or DP screen, so when testing, first connect the screen to Jetson Nano.<br/> | - The test screen is output to HDMI or DP screen, so when testing, first connect the screen to Jetson Nano.<br/> |
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