I am new to RealSense SDK. I have some issue when I try to integrate RSSDK face detection and landmarks into our application.
When I set the image resolution into 1280X720 , AcquireFrame will always return PXC_STATUS_INIT_FAILED(-503),
unless I comment the " m_pConfig->ApplyChanges(); " , which means face detection and landmarks are not enabled.
I have checked that every function call prior to calling AcquireFrame return PXC_STATUS_NO_ERROR, include PXCSenseManager::Init.
The same code works well, when I set the image resolution into 640X480 or 640X360.
SDK Version : v184.108.40.206526
DCM Version : v220.127.116.11232
Do I am missing any step ?
Below is the code snippet
m_pConfig = m_pFaceModule->CreateActiveConfiguration();
if (m_pConfig == NULL)
memset(&set, 0, sizeof(set));
set.color.imageInfo.height = 720; //480
set.color.imageInfo.width = 1280; //640
m_pConfig->pose.isEnabled = FALSE;
m_pConfig->detection.isEnabled = TRUE;
m_pConfig->landmarks.isEnabled = TRUE;
ret_status = m_pConfig->ApplyChanges();
if (ret_status < PXC_STATUS_NO_ERROR)
Any help and suggestion will be greatly appreciated.