Items with no label
3335 Discussions

Can i get Right-Eye-Center's World Coordinate(x, y, z) by Depth Stream or IR Stream(SR300)?

松拓也
Novice
1,058 Views

Hi.

I'm developing an app which change picture by Right-Eye-Center's World Coordinate(x, y, z).

It's not eye-gaze(x, y).

Now, i get Right-Eye-Center's World Coordinate by Color Stream.

But, i think that Color Stream runs slowly.

So, i will try to get it by Depth Stream or IR Stream.

Can i get Right-Eye-Center's World Coordinate(x, y, z) by Depth Stream or IR Stream(SR300)?

Getting World Coordinate(z) is special important.

Thank you.

Best regards.

0 Kudos
4 Replies
MartyG
Honored Contributor III
173 Views

I wonder if using the QueryPoint instruction will get you what you need.

https://software.intel.com/en-us/forums/realsense/topic/610755 Is it possible to get only eye landmark points?

QueryPoint has a sub-instruction called LandmarkPoint, where you can get the world coordinate of a landmark in meters using the 'world' command.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/landmarkpoint_pxcfacedata.html LandmarkPoint (+JS,+UWP)

0 Kudos
松拓也
Novice
173 Views

Thank you for your reply

If i change STREAM_TYPE_COLOR to STREAM_TYPE_DEPTH, can i get landmarks by DEPTH STREAM??

psm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 640, 480, 60);

psm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 640, 480, 60);

and,

// fdata is a PXCMFaceData instance

Int32 nfaces=fdata.QueryNumberOfDetectedFaces();

for (Int32 i=0;i<</span>nfaces;i++) {

// Retrieve the face landmark data instance

PXCMFaceData.Face face=fdata.QueryFaceByIndex(i);

PXCMFaceData.LandmarksData ldata=face.QueryLandmarks();

// get the landmark data

PXCMFaceData.LandmarkPoint[] points;

ldata.QueryPoints(out points);

}

0 Kudos
MartyG
Honored Contributor III
173 Views

Looking at the documentation, it seems that your STREAM_TYPE_DEPTH line is the correct format.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/doc_essential_aligned_capturing.html Capturing Aligned Color and Depth Streams

As for the rest of the script ... my knowledge of stream programming is limited, but I'm sure one of the other people on here will be able to check it for you and let you know if it needs changes. Good luck!

0 Kudos
idata
Employee
173 Views

Hi jazz_up_feeling_0809,

 

 

Do you still need assistance with this thread?

 

We'll be waiting for your response.

 

 

Regards,

 

-Sergio

 

0 Kudos
Reply