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

From Waveshare Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
==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
 
*Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
*Connect a HDMI LCD to Jetson Nano
+
*Connect an HDMI LCD to Jetson Nano
 
===Software setting===
 
===Software setting===
 
*Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
 
*Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
 
*Test camera with command:
 
*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
 
  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>
 +
#test video0
 +
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
 +
#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>
 
*If you find that the image captured is reddish. You can try to download .isp file and installed:
 
*If you find that the image captured is reddish. You can try to download .isp file and installed:
 
  wget https://www.waveshare.com/w/upload/e/eb/Camera_overrides.tar.gz
 
  wget https://www.waveshare.com/w/upload/e/eb/Camera_overrides.tar.gz
Line 12: Line 21:
 
  sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
 
  sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
 
  sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
 
  sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
 
+
==Test with Compute Module==
 +
The IMX219 series can be used with Compute Module series of Raspberry Pi with carriers. And the usage are same as other Raspberry Pi cameras<br />
 +
Becuase of the encropytoin, the IMX219 series cameras cannot be used with Raspberry Pi board like the Raspberry Pi 4B, please note it.<br />
 +
*Connect the camera to Compute Module Carrier board (like [https://www.waveshare.com/compute-module-4-poe-board.htm Compute Module 4 PoE Board]), please take care of the direction.
 +
*Open a terminal and configure the camera
 +
<pre>
 +
sudo raspi-config
 +
</pre>
 +
:Select Interfacing Options -> Camera -> Yes
 +
*Reboot
 +
*Test the camera with command:
 +
<pre>
 +
sudo raspistill -t 0
 +
</pre>
 +
*For more information about commands for camera, please refer to this guides:
 +
:[https://www.raspberrypi.org/documentation/raspbian/applications/camera.md Application guides of Raspberry Pi camera]
 
==Selection Guide==
 
==Selection Guide==
 
{|class="wikitable"
 
{|class="wikitable"
Line 18: Line 42:
 
|-
 
|-
 
|[https://www.waveshare.com/rpi-camera-v2.htm RPi Camera]
 
|[https://www.waveshare.com/rpi-camera-v2.htm RPi Camera]
|rowspan="11"|8 Mega
+
|rowspan="12"|8 Mega
|rowspan="11"|IMX219
+
|rowspan="12"|IMX219
|rowspan="10"|×
+
|rowspan="11"|×
 
|×||62.2||2.0||3.04||√||Raspberry Pi, Jetson Nano
 
|×||62.2||2.0||3.04||√||Raspberry Pi, Jetson Nano
 
|-
 
|-
Line 34: Line 58:
 
|-
 
|-
 
|[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-160IR-Camera.htm IMX219-160IR Camera]||√||160||2.35||3.15||√||Jetson Nano, CM3/3+
 +
|-
 +
|[https://www.waveshare.com/IMX219-160-IR-CUT-Camera.htm IMX219-160 IR-CUT Camera]||√||160||2.7||3.62||√||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-170-Camera.htm IMX219-170 Camera]||×||170||2.0||0.87||√||Jetson Nano, CM3/3+

Revision as of 06:15, 20 January 2021

Test with Jetson Nano

Hardware connection

  • Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
  • Connect an HDMI LCD to Jetson Nano

Software setting

  • Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
  • 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.
#test video0
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
#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
  • If you find that the image captured is reddish. You can try to download .isp file and installed:
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/
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp

Test with Compute Module

The IMX219 series can be used with Compute Module series of Raspberry Pi with carriers. And the usage are same as other Raspberry Pi cameras
Becuase of the encropytoin, the IMX219 series cameras cannot be used with Raspberry Pi board like the Raspberry Pi 4B, please note it.

  • Connect the camera to Compute Module Carrier board (like Compute Module 4 PoE Board), please take care of the direction.
  • Open a terminal and configure the camera
sudo raspi-config
Select Interfacing Options -> Camera -> Yes
  • Reboot
  • Test the camera with command:
sudo raspistill -t 0
  • For more information about commands for camera, please refer to this guides:
Application guides of Raspberry Pi camera

Selection Guide

Product Pixels Sensor Dual Len Infrared Angle of View (Diagonal)(degree) Afterture (F) Focal Length (MM) PCBA Suit for
RPi Camera 8 Mega IMX219 × × 62.2 2.0 3.04 Raspberry Pi, Jetson Nano
RPi NoIR Camera V2 62.2 2.0 3.04 Raspberry Pi, Jetson Nano
IMX219-77 Camera × 77 2.0 2.96 Jetson Nano, CM3/3+
IMX219-77IR 77 2.0 2.96 Jetson Nano, CM3/3+
IMX219-120 Camera × 120 2.2 1.88 Jetson Nano, CM3/3+
IMX219-160 Camera × 160 2.35 3.15 Jetson Nano, CM3/3+
IMX219-160IR Camera 160 2.35 3.15 Jetson Nano, CM3/3+
IMX219-160 IR-CUT Camera 160 2.7 3.62 Jetson Nano, CM3/3+
IMX219-170 Camera × 170 2.0 0.87 Jetson Nano, CM3/3+
IMX219-200 Camera × 200 2.0 3.15 Jetson Nano, CM3/3+
IMX219-D160 × 160 2.35 3.15 × Raspberry Pi, Jetson Nano
IMX219-83 Stereo Camera × 83 NA 2.6 Jetson Nano, CM3/3+