Software Archive
Read-only legacy content
17061 Discussions

PXC_STATUS_INIT_FAILED on AcquireFrame

Daniel_P_Intel1
Employee
387 Views

Hi,

With the blue R200 I am getting PXC_STATUS_INIT_FAILED at senseManager->AcquireFrame(true). When I use the F200 it works.

I checked on both the samples DF_CameraViewer, those are working.

I am using the follwing SDK/Driver under Win 8.1, VS 2015 Upd 1:

* intel_rs_sdk_offline_package_r6_8.0.24.6528

* intel_rs_dcm_r200_2.0.3.53109

* intel_rs_dcm_f200_1.4.27.41944

 

Some parts of the code:

session = PXCSession::CreateInstance();


senseManager = PXCSenseManager::CreateInstance();

if(!senseManager) {

wprintf_s(L"Unable to create the SenseManager\n");

return;

}

colorWidth = 640;

colorHeight = 480;

depthWidth = 640;

depthHeight = 480;

desiredFPS = 30;

pxcStatus status = senseManager->EnableStream(PXCCapture::STREAM_TYPE_COLOR, colorWidth, colorHeight, desiredFPS);

if(status != PXC_STATUS_NO_ERROR){

cout << "PXC Error on EnableStream color" << endl;

}

status = senseManager->EnableStream(PXCCapture::STREAM_TYPE_DEPTH, depthWidth, depthHeight, desiredFPS);

if(status != PXC_STATUS_NO_ERROR){

cout << "PXC Error on EnableStream depth" << endl;

}

status = senseManager->Init();

if(status != PXC_STATUS_NO_ERROR){

cout << "PXC Error on senseManager->Init" << endl;

}

pxcStatus sts = senseManager->AcquireFrame(true);

if(sts < PXC_STATUS_NO_ERROR){

cout << "Error AcquireFrame: " << sts << endl;

return;

}

 

Any ideas? Thanks!

 

0 Kudos
1 Reply
jb455
Valued Contributor II
387 Views

The R200 doesn't support the same resolutions as the F200 annoyingly. So you'll have to put some sort of conditional in to check which camera is in use and change the depth resolution to one supported by the rear camera (one of 628*468, 480*360 or 320*240). Though I recently discovered that having a higher depth resolution with the R200 means you have to be further from the camera to get depth data, so if you want the depth range to be closer to the F200, I'd recommend using 320*240 resolution.

0 Kudos
Reply