Skip to main content

MIPI CSI

MIPI CSI Interface

Support List

Camera NameSensor ModelResolution
OKDO 5MP CameraOV56475 million pixels
Radxa Camera 8M 219IMX2198 million pixels
Raspberry Pi Camera V2IMX2198 million pixels
Raspberry Pi Camera v1.3OV56475 million pixels

Accessory usage

Radxa Camera 8M 219

  • Connection

    Connect Radxa CM3I IO Board through the FPC cable as shown:

    camera connection
  • Enable Overlay

    1. Open the Kconsole terminal via the Application Launcher in the lower left corner and run the rsetup command:
     radxa@radxa-cm3i-io:~$ rsetup 
    1. Enable Radxa Camera 8M 219 Overlay by Device Tree Configuration .
    tip

    Please enable [] Enable Radxa Camera 8M 219 on CAM1 Overlay。
    Exit and reboot after enabling the successful display of [*] Enable Radxa Camera 8M 219 on CAM1 for the configuration to take effect.

    1. Reboot
  • Test

    1. Preview

    Open a terminal and enter the following command to open the camera preview:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;

    1. Take a picture

    Open a terminal and enter the following command to turn on the camera to take a picture:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;

    1. Shooting videos

    Open a terminal and enter the following command to turn the camera on to capture video:

    gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4

Raspberry Pi Camera V2

  • Connection

    Connect Radxa CM3I IO Board through the FPC cable as shown:

    camera connection
  • Enable Overlay

    1. Open the Kconsole terminal via the Application Launcher in the lower left corner and run the rsetup command:
     radxa@radxa-cm3i-io:~$ rsetup 
    1. Enable Raspberry Pi Camera V2 Overlay by Device Tree Configuration .
    tip

    Please enable [] Enable Raspberry Pi Camera v2 on CAM1 Overlay。
    Exit and reboot after enabling the successful display of [*] Enable Raspberry Pi Camera v2 on CAM1 for the configuration to take effect.

    1. Reboot
  • Test

    1. Preview

    Open a terminal and enter the following command to open the camera preview:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;

    1. Take a picture

    Open a terminal and enter the following command to turn on the camera to take a picture:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;

    1. Shooting videos

    Open a terminal and enter the following command to turn the camera on to capture video:

    gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4

Raspberry Pi Camera v1.3

  • Connection

    Connect Radxa CM3I IO Board through the FPC cable as shown:

    camera connection
  • Enable Overlay

    1. Open the Kconsole terminal via the Application Launcher in the lower left corner and run the rsetup command:
     radxa@radxa-cm3i-io:~$ rsetup 
    1. Enable Raspberry Pi Camera v1.3 Overlay by Device Tree Configuration .
    tip

    Please enable [] Enable Raspberry Pi Camera v1.3 on CAM1 Overlay。
    Exit and reboot after enabling the successful display of [*] Enable Raspberry Pi Camera v1.3 on CAM1 for the configuration to take effect.

    1. Reboot
  • Test

    1. Preview

    Open a terminal and enter the following command to open the camera preview:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;

    1. Take a picture

    Open a terminal and enter the following command to turn on the camera to take a picture:

    gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;

    1. Shooting videos

    Open a terminal and enter the following command to turn the camera on to capture video:

    gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4