astra pro获取彩色图原始实例

设备:奥比中光3D传感摄像头 Astra pro型号产品

#include "opencv2/highgui/highgui.hpp"

using namespace cv;

void ReadFrames()
{
Mat frame;
VideoCapture capture;

if (!capture.open(1))
{
    capture.open(0);
}

if (capture.isOpened()){
    capture.set(CV_CAP_PROP_FRAME_WIDTH, 640);
    capture.set(CV_CAP_PROP_FRAME_HEIGHT, 480);
}

while (true)
{
    capture >> frame;
    if (frame.empty()){
        break;
    }
}
}

你可能感兴趣的:(3D摄像头,奥比中光,Astra,Pro,3D摄像头,orbbec,uvc)