Difference between revisions of "IMX219-160 Camera"
m (Text replacement - "wget http://{{SERVERNAME}}" to "wget http://www.ingcool.com")  | 
				|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | ==  | + | ==Introduction==  | 
| − | + | IMX219 Camera, 800 megapixels and 160 FOV. Compatible with Jetson nano. You can also use it with CM3/CM3+ expansion boards like Raspberry Pi Compute Module IO board, Compute Module IO Board Plus, Compute Module POE Board board.  | |
| − | ==  | + | ==Specifications==  | 
| − | *  | + | *Sensor: Sony IMX219  | 
| − | **  | + | **Resolution: 3280x2464  | 
| − | **  | + | **8 Megapixels  | 
| − | *  | + | *Lens specifications:  | 
| − | **  | + | **CMOS size: 1/4inch  | 
| − | **  | + | **Aperture (F): 2.35  | 
| − | **  | + | **Focal Length: 3.15mm  | 
| − | **  | + | **Angle of View (diagonal): 160 degree  | 
| − | **  | + | **Distortion: <14.3%  | 
| − | *  | + | *4 screw holes  | 
| − | **  | + | **Used for attachment  | 
| − | **  | + | **Provides 3.3V power output  | 
| − | ==  | + | ==User Guide==  | 
| − | ===  | + | ===Hardware connection===  | 
| − | *  | + | *Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink  | 
| − | *:  | + | *:If you have B01 version Jetson Nano Developer Kit, connect one of the CSI interfaces.  | 
| − | *  | + | *Power on Jetson Nano  | 
| − | *:  | + | *:Note that jetson Nano cannot support hot-plug, you need to restart it after connecting camera.  | 
| − | ===  | + | ===Test===  | 
| − | *  | + | *Open a terminal and run the following command for testing  | 
| − | *:  | + | *:Note: you need to connect a HDMI display to Jetson Nano Developer Kit, otherwise the image of camera cannot be previewed.  | 
<pre>  | <pre>  | ||
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  | ||
</pre>  | </pre>  | ||
| − | *  | + | *If you find that the image captured is red. You can try to download .isp file and installed:  | 
<pre>  | <pre>  | ||
| − | wget http://  | + | wget http://www.ingcool.com/w/images/e/eb/Camera_overrides.tar.gz  | 
tar zxvf Camera_overrides.tar.gz    | tar zxvf Camera_overrides.tar.gz    | ||
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/  | sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/  | ||
| Line 35: | Line 35: | ||
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp  | sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp  | ||
</pre>  | </pre>  | ||
| − | + | 【Note】The 12 in NV12 is number but not string.  | |
| − | ==  | + | ==Drive two cameras==  | 
| − | + | If you want to use two camera at the same time(for B01), you can add parameter sensor-id=x to change the camera  | |
| − | *  | + | *Test video0  | 
<pre>  | <pre>  | ||
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  | 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  | ||
</pre>  | </pre>  | ||
| − | *  | + | *Test video1  | 
<pre>  | <pre>  | ||
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  | 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>  | ||
| − | ==  | + | ==Related link==  | 
| − | *[https://developer.nvidia.com/embedded/downloads Jetson   | + | *[https://developer.nvidia.com/embedded/downloads Jetson Download center]  | 
| − | *[https://www.jetsonhacks.com/2019/04/02/jetson-nano-raspberry-pi-camera/   | + | *[https://www.jetsonhacks.com/2019/04/02/jetson-nano-raspberry-pi-camera/ Use Opencv]  | 
Latest revision as of 10:12, 13 July 2020
Contents
Introduction
IMX219 Camera, 800 megapixels and 160 FOV. Compatible with Jetson nano. You can also use it with CM3/CM3+ expansion boards like Raspberry Pi Compute Module IO board, Compute Module IO Board Plus, Compute Module POE Board board.
Specifications
- Sensor: Sony IMX219
- Resolution: 3280x2464
 - 8 Megapixels
 
 - Lens specifications:
- CMOS size: 1/4inch
 - Aperture (F): 2.35
 - Focal Length: 3.15mm
 - Angle of View (diagonal): 160 degree
 - Distortion: <14.3%
 
 - 4 screw holes
- Used for attachment
 - Provides 3.3V power output
 
 
User Guide
Hardware connection
- Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
- If you have B01 version Jetson Nano Developer Kit, connect one of the CSI interfaces.
 
 - Power on Jetson Nano
- Note that jetson Nano cannot support hot-plug, you need to restart it after connecting camera.
 
 
Test
- Open a terminal and run the following command for testing
- Note: you need to connect a HDMI display to Jetson Nano Developer Kit, otherwise the image of camera cannot be previewed.
 
 
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
- If you find that the image captured is red. You can try to download .isp file and installed:
 
wget http://www.ingcool.com/w/images/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
【Note】The 12 in NV12 is number but not string.
Drive two cameras
If you want to use two camera at the same time(for B01), you can add parameter sensor-id=x to change the camera
- 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