<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ​Hi David in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076869#M60215</link>
    <description>&lt;P&gt;​&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hi David&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Below the information about the SDk. The camera is RealSense F200&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) SDK 8.0.24.6528&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) SDK Runtime 6.0.21.6598&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) Depth Camera Manager 1.4.27.41944&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) 3D Camera 2780&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I tryed pick up the landmarks position but the code bring the points null.&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;// get the landmark data
ldata.QueryPoints(points);
&lt;STRONG&gt;for(PXCMFaceData.LandmarkPoint p: points){
                       if(p != null){
                           System.out.println("points x: " + p.image.x);
                           System.out.println("points y: " + p.image.y);
                       }
                   }&lt;/STRONG&gt;
              }
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 01:33:11 GMT</pubDate>
    <dc:creator>carlos_c_6</dc:creator>
    <dc:date>2016-02-19T01:33:11Z</dc:date>
    <item>
      <title>Use Java code to capture landmarks points</title>
      <link>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076867#M60213</link>
      <description>&lt;P&gt;Hi guys.&lt;/P&gt;

&lt;P&gt;I tried to make some test in relasense camera using the java language.&lt;/P&gt;

&lt;P&gt;Below the code.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I tried to capture de landmaks but the java program return the null points.&lt;/P&gt;

&lt;P&gt;Why?&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;import intel.rssdk.PXCMCaptureManager;
import intel.rssdk.PXCMFaceConfiguration;
import intel.rssdk.PXCMFaceData;
import intel.rssdk.PXCMFaceModule;
import intel.rssdk.PXCMSenseManager;
import intel.rssdk.PXCMSession;
import intel.rssdk.pxcmStatus;

public class TesteLandMark {

	public static void main(String[] args) {
		// Create session
		PXCMSession session = PXCMSession.CreateInstance();
		if (session == null) {
			System.out.print("Failed to create a session instance\n");
			System.exit(3);
		}

		PXCMSenseManager senseMgr = session.CreateSenseManager();
		if (senseMgr == null) {
			System.out.print("Failed to create a SenseManager instance\n");
			System.exit(3);
		}
		
		PXCMCaptureManager captureMgr = senseMgr.QueryCaptureManager();
		captureMgr.FilterByDeviceInfo("RealSense", null, 0);

		pxcmStatus sts = senseMgr.EnableFace(null);
		
		if (sts.compareTo(pxcmStatus.PXCM_STATUS_NO_ERROR) &amp;lt; 0) {
			throw new IllegalStateException("Failed to enable face");
		}

		PXCMFaceModule face = senseMgr.QueryFace();
		PXCMFaceConfiguration cfg = face.CreateActiveConfiguration();
		cfg.EnableAllAlerts();

		cfg.ApplyChanges();
		cfg.close();
		
		sts = senseMgr.Init();
		
		while (senseMgr.AcquireFrame(true) == pxcmStatus.PXCM_STATUS_NO_ERROR) {	
			  PXCMFaceModule face2 = senseMgr.QueryFace();
			  
			  PXCMFaceData faceData = face2.CreateOutput();
			  faceData.Update();
			  int numFaces = faceData.QueryNumberOfDetectedFaces();
			  System.out.println("Saw: " + numFaces + " faces.");
			  for (int i = 0; i &amp;lt; numFaces; i++)  {
				  // Retrieve the face landmark data instance
				   PXCMFaceData.Face face1 = faceData.QueryFaceByIndex(i);
				   PXCMFaceData.LandmarksData ldata = face1.QueryLandmarks();
				   
				   // allocate the array big enough to hold the landmark points.
				   int npoints = ldata.QueryNumPoints();
				   PXCMFaceData.LandmarkPoint[] points = new PXCMFaceData.LandmarkPoint[npoints];
				   
				   // get the landmark data
				   ldata.QueryPoints(points);
				   
				   for(PXCMFaceData.LandmarkPoint p: points){
					   if(p != null){
						   System.out.println("points x: " + p.image.x);
						   System.out.println("points y: " + p.image.y);
					   }
				   }
			  }
			  faceData.close();	
			  senseMgr.ReleaseFrame();
		} 
	}
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 23:47:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076867#M60213</guid>
      <dc:creator>carlos_c_6</dc:creator>
      <dc:date>2016-02-17T23:47:48Z</dc:date>
    </item>
    <item>
      <title>Which camera are you using?</title>
      <link>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076868#M60214</link>
      <description>&lt;P&gt;Which camera are you using? Which version release SDK? Where did you get Null? Please provide us detail info so I can help you. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:37:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076868#M60214</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2016-02-18T18:37:42Z</dc:date>
    </item>
    <item>
      <title>​Hi David</title>
      <link>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076869#M60215</link>
      <description>&lt;P&gt;​&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hi David&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Below the information about the SDk. The camera is RealSense F200&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) SDK 8.0.24.6528&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) SDK Runtime 6.0.21.6598&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) Depth Camera Manager 1.4.27.41944&lt;/LI&gt;
	&lt;LI&gt;Intel(R) RealSense(TM) 3D Camera 2780&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I tryed pick up the landmarks position but the code bring the points null.&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;// get the landmark data
ldata.QueryPoints(points);
&lt;STRONG&gt;for(PXCMFaceData.LandmarkPoint p: points){
                       if(p != null){
                           System.out.println("points x: " + p.image.x);
                           System.out.println("points y: " + p.image.y);
                       }
                   }&lt;/STRONG&gt;
              }
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 01:33:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076869#M60215</guid>
      <dc:creator>carlos_c_6</dc:creator>
      <dc:date>2016-02-19T01:33:11Z</dc:date>
    </item>
    <item>
      <title>Hi All, </title>
      <link>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076870#M60216</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I got same Issue ? Any one came up with a solution ? Please share&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 02:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Use-Java-code-to-capture-landmarks-points/m-p/1076870#M60216</guid>
      <dc:creator>KKasu</dc:creator>
      <dc:date>2016-10-27T02:18:20Z</dc:date>
    </item>
  </channel>
</rss>

