Items with no label
3338 토론

SR300 color and depth stream fps question

ewu12
초보자
2,122 조회수

Hi, Sir

I try to setting the SR300 color and depth stream at 1920x1080 30 fps .

but the image show 17 fps at 1920x1080, below the photo1,

when I setting 640x480 the image show 30 fps

Q. At 1920x1080, could i setting 30 fps and how to check it is true ?

Thanks.

It's my testing code

# include

# include

# include "util_render.h"

# include

# define COLOR_WIDTH 640//1920

# define COLOR_HEIGHT 480//1080

# define DEPTH_WIDTH 640

# define DEPTH_HEIGHT 480

void main()

{

UtilRender *renderColor = new UtilRender(L"COLOR_STREAM");

UtilRender *renderDepth = new UtilRender(L"DEPTH_STREAM");

PXCSenseManager *psm = NULL;

psm = PXCSenseManager::CreateInstance();

if (psm == NULL) {

std::cout << "Unabel to create the PXCSenseManager" << std::endl;

return;

}

PXCSession::ImplVersion version = psm->QuerySession()->QueryVersion();

std::cout << "SDK Version:" << version.major << version.minor << std::endl;

psm->EnableStream(PXCCapture::STREAM_TYPE_COLOR, COLOR_WIDTH, COLOR_HEIGHT,30);

psm->EnableStream(PXCCapture::STREAM_TYPE_DEPTH, DEPTH_WIDTH, DEPTH_HEIGHT, 30);

if (psm->Init() != PXC_STATUS_NO_ERROR) {

std::cout << "Unable to Init the PXCSenseManager" << std::endl;

return;

}

PXCImage *colorIm, *depthIm;

while (true)

{

if (psm->AcquireFrame(true) < PXC_STATUS_NO_ERROR)

{

break;

}

PXCCapture::Sample *sample = psm->QuerySample();

if (sample)

{

if (sample->color)

{

colorIm = sample->color;

if (!renderColor->RenderFrame(colorIm))

break;

}

if (sample->depth)

{

depthIm = sample->depth;

if (!renderDepth->RenderFrame(depthIm))

break;

}

}

psm->ReleaseFrame();

}

psm->Release();

}

0 포인트
3 응답
jb455
소중한 기여자 II
652 조회수

You could be limited by the rendering speed - comment out the RenderFrame lines and see if it gets up to 30fps then.

0 포인트
idata
직원
652 조회수

Hi Wu,

 

 

Let us know your results once you try jb455's suggestion, we would like to know if you get better results by doing that.

 

Jb455, thank you very much for your help on this thread.

 

 

Regards,

 

-Pablo M.
0 포인트
idata
직원
652 조회수

Hello,

 

 

We would like to know if you have updates on this case. Have you tried the suggestions?

 

 

Regards,

 

Pablo M.
0 포인트
응답