yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK MIPI Camera📖
Use tutorials
  • 1.RDK camera usage information
  • 2.Local save camera images
  • 3.Camera image encoding
  • 4.Target detection algorithm—YOLOv5s
Case installation video
  • Installation Video
Camera installation video
  • Installation Video
Download ZIP

Welcome to RDK MIPI Camera repository

2.Local save camera images

Local save camera images

Local save camera images1. Experimental preparation2. Running method3. Expected results

1. Experimental preparation

This example vio_capture implements the MIPI camera image acquisition and local storage of images in two formats: RAW and YUV. The example flow chart is as follows:

  • When the development board is powered off, connect the MIPI camera to the development board (with the black side facing the HDMI interface).
  • Connect the development board and the monitor via an HDMI cable
  • Power on the development board and log in to the system

2. Running method

The sample code is provided in source code form and needs to be compiled and run using the make command. The steps are as follows:

xxxxxxxxxx
sunrise@ubuntu:~$ cd /app/cdev_demo/vio_capture/
sunrise@ubuntu:/app/cdev_demo/vio_capture$ sudo make
sunrise@ubuntu:/app/cdev_demo/vio_capture$ sudo ./capture -b 16 -c 10 -h 1080 -w 1920

Parameter description:

  • -b: RAW image bit number, IMX219 / IMX477 / OV5647 are all set to 16, only a few camera sensors need to be set to 8
  • -c: Number of images to save
  • -w: Width of saved images
  • -h: Height of saved images

3. Expected results

After the program runs correctly, when the terminal stops printing, enter 0 or 1, then press Enter to start the camera. The current directory saves the specified number of image files.

The RAW format is named as raw_*.raw, and the YUV format is named as yuv_*.yuv.

The running log is as follows.

sunrise@ubuntu:/app/cdev_demo/vio_capture$ sudo ./capture -b 16 -c 10 -h 1080 -w 1920
Setting VPS channel-2: src_w:1920, src_h:1080; dst_w:1920, dst_h:1080;
Setting VPS channel-1: src_w:1920, src_h:1080; dst_w:1920, dst_h:1080;
jiale:start streaming...
capture time :0
capture time :1
capture time :2
capture time :3
capture time :4
capture time :5
capture time :6
capture time :7
capture time :8
capture time :9
sensor_name imx477, setting_size = 1
[  701.213210]hb_isp_algo_stop@main_user.c:389 GENERIC(ERR) :g_mutex destroy.
RDK camera usage information
Camera image encoding

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文