Difference between revisions of "IMX219-160 Camera"

From ingcool
Jump to: navigation, search
(创建页面,内容为“==产品介绍== 本产品是一款MIPI-CSI摄像头,采用索尼IMX219感光芯片,支持NVIDIA Jetson Nano 开发套件和树莓派Compute Module 3/3+. 最高…”)
 
m (Text replacement - "wget http://{{SERVERNAME}}" to "wget http://www.ingcool.com")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
==产品介绍==
+
==Introduction==
本产品是一款MIPI-CSI摄像头,采用索尼IMX219感光芯片,支持NVIDIA Jetson Nano 开发套件和树莓派Compute Module 3/3+. 最高支持800万像素, 160°视场角。
+
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==
*感光芯片:索尼IMX219
+
*Sensor: Sony IMX219
**分辨率3280x2464
+
**Resolution: 3280x2464
**800万像素
+
**8 Megapixels
*镜头参数
+
*Lens specifications:
**镜头尺寸:1/4英寸
+
**CMOS size: 1/4inch
**光圈:2.35
+
**Aperture (F): 2.35
**焦距:3.15mm
+
**Focal Length: 3.15mm
**对角视场角:160°
+
**Angle of View (diagonal): 160 degree
**畸变:<14.3%
+
**Distortion: <14.3%
*螺丝孔:
+
*4 screw holes
**可以用于固定摄像头
+
**Used for attachment
**支持对外3.3V供电
+
**Provides 3.3V power output
==使用说明==
+
==User Guide==
===硬件连接===
+
===Hardware connection===
*将摄像头排线,金属面朝向散热板插入Jetson Nano 开发套件上的摄像头接口。
+
*Connect the camera to CSI interface of Jetson Nano.Set the metal side of FFC into Heat-sink
*:如果是B01版本的Jetson Nano Developer Kit,可以接入任一个摄像头接口
+
*:If you have B01 version Jetson Nano Developer Kit, connect one of the CSI interfaces.
*上电启动Jetson Nano
+
*Power on Jetson Nano
*:注意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
*:注意:测试摄像头需要给Jetson Nano连接HDMI屏幕,否则摄像头画面无法正常显示
+
*: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>
*如果屏幕有偏红问题,可以安装一下isp文件
+
*If you find that the image captured is red. You can try to download .isp file and installed:
 
<pre>
 
<pre>
wget http://47.107.148.244/w/images/e/eb/Camera_overrides.tar.gz
+
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>
【注意】NV12中的12是数字不是字母
+
【Note】The 12 in NV12 is number but not string.
==驱动双目摄像头==
+
==Drive two cameras==
如果需要驱动两个摄像头(针对B01),可以在语句加sensor-id=x判断。
+
If you want to use two camera at the same time(for B01), you can add parameter sensor-id=x to change the camera
*驱动video0
+
*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>
*驱动video1
+
*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 Download center]
 +
*[https://www.jetsonhacks.com/2019/04/02/jetson-nano-raspberry-pi-camera/ Use Opencv]

Latest revision as of 10:12, 13 July 2020

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

Related link