Skip to content

# 3.11. Camera接入验证

## 3.11.1. 硬件环境搭建

对于Matrix 6E/M硬件平台，连接端子定义如下：

基于此硬件平台运行11V作为示例，模组连接信息如下：

RX口 | LINK端子 | 模组 | duty_time
--- | --- | --- | ---
0 | A | LCE-OVX8B Fov120 | 3840x2160 RAW12
0 | C | LCE-OVX8B Fov30 | 3840x2160 RAW12
0 | D | LCE-OVX3C Fov60 | 1920x1280 RAW12
1 | A-D | LCE-OVX3C Fov100 | 1920x1280 RAW12
4 | A-D | SENSING-ISX031 Fov190 | 1920x1536 YUV422

## 3.11.2. 运行示例

板端运行case用例，执行命令如下：

    cd /app/sample/S83_Sample/S83E04_Module/camera_sample/cfg/case_matrix

1V测试命令：1V_OVX8B_RX0

    /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c ./1V_OVX8B_RX0/hb_j6dev.json -v ./1V_OVX8B_RX0/vpm_config.json -r 10

3V测试命令：2V_OVX8B_OVX3C_RX0

    /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c ./3V_2xOVX8B_1xOVX3C_RX0/hb_j6dev.json -v ./3V_2xOVX8B_1xOVX3C_RX0/vpm_config.json -r 10

4V测试命令：4V_4xOVX3C_RX1

    /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c ./4V_4xOVX3C_RX1/hb_j6dev.json -v ./4V_4xOVX3C_RX1/vpm_config.json -r 10

4V测试命令：4V_4xISX031_RX4

    /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c /app/sample/S83_Sample/S83E04_Module/camera_sample/cfg/case_matrix/4V_4xISX031_RX4/hb_j6dev.json \
    -v /app/sample/S83_Sample/S83E04_Module/camera_sample/cfg/case_matrix/4V_4xISX031_RX4/vpm_config.json -t b25 -r 10

7V测试命令：7V_2xOVX8B_1xOVX3C_RX0_4xOVX3C_RX1_SYNC_with_pipe

    /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c ./7V_2xOVX8B_1xOVX3C_RX0_4xOVX3C_RX1_SYNC_with_pipe/hb_j6dev.json \
    -v ./7V_2xOVX8B_1xOVX3C_RX0_4xOVX3C_RX1_SYNC_with_pipe/vpm_config.json -r 10

以下为1Vcase的正常log：

    >> /app/sample/S83_Sample/S83E04_Module/camera_sample/bin/camera_sample -c ./1V_OVX8B_RX0/hb_j6dev.json -v ./1V_OVX8B_RX0/vpm_config.json -r 10
    [camera_sample]:cam_cfg_file = ./1V_OVX8B_RX0/hb_j6dev.json
    [camera_sample]:vio_cfg_file = ./1V_OVX8B_RX0/vpm_config.json
    [camera_sample]:run_time = 10
    [camera_sample]:camera_sample start
    [camera_sample]:hb_vio_init(./1V_OVX8B_RX0/vpm_config.json) ...
    [camera_sample]:hb_cam_init(0, ./1V_OVX8B_RX0/hb_j6dev.json) ...
    [camera_sample]:  auto get 1 pipe mask 0x1
    [camera_sample]:hb_vio_start_pipeline(0) ...
    [camera_sample]:thread cam0:CIM_RAW work
    [camera_sample]:camera flow0:t24-CIM_RAW frame 25: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 50: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 75: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 100: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 125: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 150: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 175: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 200: fps 25.00
    [camera_sample]:camera flow0:t24-CIM_RAW frame 225: fps 25.00
    [camera_sample]:thread cam0:CIM_RAW exit
    [camera_sample]:hb_vio_stop_pipeline(0) ...
    [camera_sample]:hb_cam_deinit() ...
    [camera_sample]:hb_vio_deinit() ...
    [camera_sample]:camera_sample end 0 --> PASS

运行过程可通过以下命令查看帧率：

    cat /sys/class/vps/flow/fps

更多示例说明参考 Sample使用说明