Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

How to use Data Smoothing for tracking hands

jefferson_p_
Beginner
672 Views

 

Good morning for everyone!

I'm to trying use smoothing data with this functions below, but I haven't had success in my test, exist some examples or some explanation about this feature? 

Thanks!!

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?pxcdatasmoothing.html

0 Kudos
3 Replies
Pubudu-Silva_Intel
672 Views

Refer to the manual, for example the link below has an example

https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/

0 Kudos
Dagan_E_Intel
Employee
672 Views

Hi Jefferson,

the trick is actually in choosing the good smoothing values. We might need to improve the documentation here.

Here's an example for smoothing 3D tracking data:

// create the smoother objects

PXCDataSmoothing* smoother = NULL;
g_session->CreateImpl<PXCDataSmoothing>(&smoother);
// Creating Quadratic smoother - available options are [Spring, Stabilizer, Weightd]
m_smoother = smoother->Create3DQuadratic(0.5f);

// when you collect the tracking data - you smooth it by:

if(hand->QueryTrackedJoint(PXCHandData::JointType::SOME_JOINT_NAME,jointData) == PXC_STATUS_NO_ERROR)

{

PXCPoint3DF32 point = {jointData.positionWorld.x,jointData.positionWorld.y,jointData.positionWorld.z};

m_smoother->AddSample(point);

point = m_smoother->GetSample();

}

0 Kudos
jefferson_p_
Beginner
672 Views

Thanks for your attention.

I'll try it.
I'm making some test with kalman filter and result was great.

 

0 Kudos
Reply