Software Archive
Read-only legacy content
17061 Discussions

R200 Development with Scene Perception and Face Tracking

Jin_Long_W_
Beginner
344 Views

Hi,

I' m developing with R200 camera. What I want to do is measuring human's height by measurement and face detection. And I've port the sample RF_MeasurementSP to Unity 5 and it works fine. But when adding face detection module to my project some problem occurred.

I reduce the code to the minimum so it clearly shows the point:

PXCMSenseManager senseManager = PXCMSenseManager.CreateInstance();
senseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, COLOR_CAPTURE_WIDTH, COLOR_CAPTURE_HEIGHT, COLOR_FRAMERATE);
senseManager.EnableFace();
pxcmStatus res = senseManager.Init();
if (res >= pxcmStatus.PXCM_STATUS_NO_ERROR) {

} else {
	// It returns PXCM_STATUS_ITEM_UNAVAILABLE
}

It works if I comment out the line:

senseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, COLOR_CAPTURE_WIDTH, COLOR_CAPTURE_HEIGHT, COLOR_FRAMERATE);

But I need it to make my Scene Perception module to work too. So are there any solutions or workaround? Thanks in advance!

Will

0 Kudos
0 Replies
Reply