其他分享
首页 > 其他分享> > Nvidia Agx Xaiver平台四路camera同步采集调试

Nvidia Agx Xaiver平台四路camera同步采集调试

作者:互联网

1. 前言

平台:xavier

相机: Leopard Imaging LI-XAVIER-KIT-IMX477CS-Q套件和四个基于imx477的相机。【nvidia官方合作的相机供应商】

功能: 尝试实现一个简单的应用程序,从4个相机同步捕捉图像。

nvidia xaiver平台四路camera同步采集调试

2. 应用代码实现

#include <stdio.h>
#include <Argus/Argus.h>
#include <EGLStream/EGLStream.h>

#define SENSOR_MODE                     0

#define FIVE_SECONDS_IN_NANOSECONDS     5000000000L

int main(int argc, char** argv) {
    // Initialize camera provider
    Argus::UniqueObj<Argus::CameraProvider> cameraProvider(Argus::CameraProvider::create());
    Argus::ICameraProvider *iCameraProvider = Argus::interface_cast<Argus::ICameraProvider>(cameraProvider);
    if(!iCameraProvider) {
        fprintf(stderr, "Cannot get core camera provider interface\n");
        return -1;
    }
    printf("\n\nArgus Version: %s\n", iCameraProvider->getVersion().c_str());

    // Get camera devi

标签:int,Nvidia,iCameraProvider,Argus,相机,camera,Agx,include
来源: https://blog.csdn.net/jzwjzw19900922/article/details/122197373