Welcome to RDK S600 Developer Kit repository
2.11 Using the IMX219 Camera
Using the IMX219 Camera
A mipi_camera_streamer.py program is preinstalled on the board for testing the MIPI camera data path. This example captures MIPI camera image data in real time and outputs it through the HDMI interface.
1. Environment Preparation
Currently this sample supports the MIPI sensors: IMX219, SC230AI, shw3hstd_amsl-60fps
Connect the board and a display with an HDMI cable
Connect the MIPI camera module to the MIPI CSI interface of the board. Note the orientation of the gold fingers (the metal-contact side faces the circuit board, on both ends)

2. Running Method
Run the program with the following commands
sunrise@ubuntu:~$ cd /app/pydev_demo/mipi_camera_samplesunrise@ubuntu:/app/pydev_demo/mipi_camera_sample$ python 05_mipi_camera_streamer.py -w 1920 -h 1080After the commands are executed, the terminal first lists the detected sensor configurations and asks you to choose one:
xxxxxxxxxx[0] INFO: Found sensor name:imx219-30fps on mipi rx csi 4, i2c addr 0x10, config_file:linear_1920x1080_raw10_30fps_1lane.c[1] INFO: Found sensor name:shw3hstd_amsl-60fps on mipi rx csi 4, i2c addr 0x10, config_file:linear_1920x1536_60fps_1lane.cplease choose sensor config,the number should small than 2Enter 0 and press Enter, and the program will continue to run. The numbers here correspond one-to-one with the sensors printed in [x] INFO: Found sensor name above; for example, 0 corresponds to the configuration of imx219-30fps.
3. Expected Result
After the program runs, the display shows the camera view in real time, as shown below:

Precautions
Camera plugging and unplugging precautions
It is strictly forbidden to plug or unplug the camera while the board is powered on; otherwise the camera module can be easily burned out.