Quick-Start-Guide
Hardware Connection
-
Locate the camera connector (CSI). It’s on the side of the carrier board, opposite to the GPIO pins.
-
Pull up on the plastic edges of the camera port. Do it gently to avoid pulling it off.
- Push in the camera ribbon. Make sure the contacts are facing the heatsinks. Do not bend the flex cable, and make sure it’s firmly inserted into the bottom of the connector.
Ribbon Cable Contacts – 15pin-15pin
Silver Contacts facing inside to the heatsinks
Ribbon cable fully inserted to the bottom of the CSI connector
- Push the plastic connector down. Do it while holding the flex cable until the connector is back in place.
Software
Preparation
1.Please confirm that you are using the official NVIDIA Jetson Carrier Board
Note
The Third-party carrier boards are not guaranteed to work.
2.Please confirm that you are using the supported JetPack version
You can find the Supported JetPack Version on Different NVIDIA Jetson Platforms as follows:
Supported JetPack Version on Different NVIDIA Jetson Platforms
Install driver
-
8MP IMX219 Camera
For the imx219, you don't need to install any drive:
imx219 Board list:
Resolution | Camera Module |
---|---|
8MP | imx219 |
-
12MP IMX477 Camera
For the imx477, you need to install the following steps:
imx477 Board list:
Resolution | Camera Module |
---|---|
12MP | imx477 |
Step 1. Download the bash scripts
Step 2. Install the driver
-
12MP IMX708 Camera
For the imx708 camera module, you will need to refer to the following steps:
imx708 Board list:
Resolution | Camera Module |
---|---|
12MP | imx708 |
Step 1. Download the bash scripts
Step 2. Install the driver
-
16MP IMX519 Camera
For the imx519, you need to install the following steps:
imx519 camera Board list:
Resolution | Camera Module |
---|---|
16MP | imx519 |
Step 1. Download the bash scripts
Step 2. Install the driver
Using Gstreamer access camera
1.View the Pixel format
2.Preview
If you want to use ssh connection, please export DISPLAY=:0
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=GAY8, width=2560, height=800 ! videoconvert ! xvimagesink
format
: Select the Pixel format (v4l2-ctl --list-formats-ext
— Pixel format).
width
,height:
Select the resolution (v4l2-ctl --list-formats-ext
— Size).
ximagesink
: Preview. If does not work, please try ximagesink (xvimagesink), glimagesink, d3dvideosink (Windows).
3.Capture video
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format=(string)GRAY8,width=(int)2560,height=(int)800' ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=test.mp4 -e
format
: Select the Pixel format (v4l2-ctl --list-formats-ext
— Pixel format).
width
,height:
Select the resolution (v4l2-ctl --list-formats-ext
— Size).
4.Streaming
4.1 Streaming Sever
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=GRAY8,width=2560,height=800 ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc profile=high cabac-entropy-coding=true insert-sps-pps=true iframeinterval=60 ! 'video/x-h264, level=(string)4.2, stream-format=(string)byte-stream' ! tcpserversink host=0.0.0.0 port=5001 -v
4.2 Streaming Client
Please exit the virtual machine created with anacondac, or you can install conda install gst-libav -c conda-forge
gst-launch-1.0 -v tcpclientsrc host=0.0.0.0 port=5001 ! decodebin ! fpsdisplaysink sync=false text-overlay=false
or
autovideosink
: Preview. If does not work, please tryximagesink
(xvimagesink
),glimagesink
,d3dvideosink
(Windows).