- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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();
}
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
