<?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 Thanks for the replies. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011356#M34267</link>
    <description>&lt;P&gt;Thanks for the replies.&lt;/P&gt;

&lt;P&gt;I am stuck with another issue now. I am trying to get the no of faces detected. Here;s my code. it always prints 0.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;    PXCMSenseManager sm = PXCMSenseManager.CreateInstance();

          sm.EnableFace();
            sm.Init();


            // face is a PXCMFaceModule instance

           


            while (sm.AcquireFrame()&amp;gt;= pxcmStatus.PXCM_STATUS_NO_ERROR )
            {

                PXCMFaceModule face2 = sm.QueryFace();
                 PXCMFaceData fdata= face2.CreateOutput();
                 Int32 no = fdata.QueryNumberOfDetectedFaces();
                 Console.WriteLine(no);
              fdata.Dispose();           
            }
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2014 12:38:20 GMT</pubDate>
    <dc:creator>HexLord</dc:creator>
    <dc:date>2014-12-05T12:38:20Z</dc:date>
    <item>
      <title>Basic Hand Program</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011343#M34254</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I tried running &amp;nbsp;the basic hand program. All I wanted to do was print "Hey" if the camera saw a hand.&lt;/P&gt;

&lt;P&gt;I copied this code right out of the SDK and added &amp;nbsp; Console.WriteLine("HEY") .&lt;/P&gt;

&lt;P&gt;On execution, the program kept on writing HEY even when there was no hand in front of it.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;// Create an instance of the SenseManager.
PXCMSenseManager sm=PXCMSenseManager.CreateInstance();
 
// Enable hand tracking
sm.EnableHand();
 
// Get a hand instance here (or inside the AcquireFrame/ReleaseFrame loop) for querying features
PXCMHandModule hand=sm.QueryHand();
...
 
// Initialize the pipeline
sm.Init();
 
// Stream data
while (sm.AcquireFrame(true)&amp;gt;=pxcmStatus.PXCM_STATUS_NO_ERROR) {
  // retrieve hand tracking results if ready
  PXCMHandModule hand2=sm.QueryHand();
  if (hand2!=null) {
     Console.WriteLine("HEY")
  }
 
  // resume next frame processing
  sm.ReleaseFrame();
}
 
// Clean up
sm.Dispose();
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please Help&lt;/P&gt;

&lt;P&gt;-Shaleen Sharda&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 08:39:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011343#M34254</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-04T08:39:15Z</dc:date>
    </item>
    <item>
      <title>Your code retrieves the</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011344#M34255</link>
      <description>&lt;P&gt;Your code retrieves the instance of the hand module, it is simply acknowledging that the module is active in the pipeline.&lt;/P&gt;

&lt;P&gt;You need to dig deeper into the returned data to get the tracking results.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?pxchandmodule.html" target="_blank"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?pxchandmodule.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 08:50:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011344#M34255</guid>
      <dc:creator>steve-vink</dc:creator>
      <dc:date>2014-12-04T08:50:02Z</dc:date>
    </item>
    <item>
      <title>hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011345#M34256</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for the reply.&lt;/P&gt;

&lt;P&gt;what editions can I make to check if the camera sees a hand ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Shaleen Sharda&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 08:54:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011345#M34256</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-04T08:54:41Z</dc:date>
    </item>
    <item>
      <title>I'm not using hand</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011346#M34257</link>
      <description>&lt;P&gt;I'm not using hand recognition so I haven't looked into it too much. But I highly recommend the demo code that is in the SDK folder. There is a full demo app for each part of the camera, and it's fairly easy to take the class file they have created and modify it for your purposes.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 08:58:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011346#M34257</guid>
      <dc:creator>steve-vink</dc:creator>
      <dc:date>2014-12-04T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Okay...Also I tried the</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011347#M34258</link>
      <description>&lt;P&gt;Okay...Also I tried the following code , it doesnt execute:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Courier New'; line-height: normal;"&gt;sm.EnableStream(PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32,0,0);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Courier New'; line-height: normal;"&gt;it says it has some invalid arguments&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Courier New'; line-height: normal; font-size: 1em;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Courier New'; line-height: normal;"&gt;Shaleen Sharda&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 11:40:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011347#M34258</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-04T11:40:03Z</dc:date>
    </item>
    <item>
      <title>well, is has invalid</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011348#M34259</link>
      <description>&lt;P&gt;&lt;A href="https://software.intel.com/en-us/user/1051487"&gt;well, it has invalid arguments...&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It should be called like this:&lt;/P&gt;

&lt;P&gt;sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480 30);&lt;/P&gt;

&lt;P&gt;Or just like this:&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR);&lt;/P&gt;

&lt;P&gt;Take a look at the samples, this is thoroughly covered there.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011348#M34259</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2014-12-04T13:01:00Z</dc:date>
    </item>
    <item>
      <title>I think I've been trying this</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011349#M34260</link>
      <description>&lt;P&gt;I think I've been trying this sample code, but I forget which one. Can you show me the page for downloading this sample?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:02:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011349#M34260</guid>
      <dc:creator>Raditya_U_</dc:creator>
      <dc:date>2014-12-04T13:02:35Z</dc:date>
    </item>
    <item>
      <title>It is in almost every sample</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011350#M34261</link>
      <description>&lt;P&gt;It is in almost every sample in the installed sdk.&lt;/P&gt;

&lt;P&gt;Here for example:&lt;/P&gt;

&lt;P&gt;Intel\RSSDK\sample\raw_streams\src\raw_streams.cpp&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:06:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011350#M34261</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2014-12-04T13:06:55Z</dc:date>
    </item>
    <item>
      <title>hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011351#M34262</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I am trying to get a simple hand detection code to work.&lt;/P&gt;

&lt;P&gt;Does anyone have a sample code to show message when a hand appears in front of the camera?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:10:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011351#M34262</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-04T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Download the tutorial</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011352#M34263</link>
      <description>&lt;P&gt;Download the tutorial solution here&amp;nbsp;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/managed/e0/5c/Tutorial_VisualStudioProjectSolution.zip"&gt;https://software.intel.com/sites/default/files/managed/e0/5c/Tutorial_VisualStudioProjectSolution.zip&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The 3_Hands_Tracking project display an alert when detecting your hand, you can add it in the handtracking_render.cpp in the NotifyAlerts function&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011352#M34263</guid>
      <dc:creator>Raditya_U_</dc:creator>
      <dc:date>2014-12-04T13:31:18Z</dc:date>
    </item>
    <item>
      <title>Here is some Java code that I</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011353#M34264</link>
      <description>&lt;P&gt;Here is some Java code that I am using that might help give you an idea of the steps required.&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;In the initialization of the device I do:

senseManager.EnableHand();
PXCHandModule handModule = senseManager.QueryHand();
handData = handModule.CreateOutput();
PXCHandConfiguration handConfig = handModule.CreateActiveConfiguration();
TrackingModeType trackingMode = TrackingModeType.TRACKING_MODE_FULL_HAND;
handConfig.SetTrackingMode(trackingMode);
handConfig.EnableAllGestures();
handConfig.EnableAlert(AlertType.ALERT_HAND_DETECTED);
handConfig.EnableAlert(AlertType.ALERT_HAND_NOT_DETECTED);
handConfig.ApplyChanges();

For each frame:

handData.Update();
for (int i = 0; i &amp;lt; handData.QueryFiredAlertsNumber(); i++) {
  PXCHandData.AlertData alertData = new PXCHandData.AlertData();
  handData.QueryFiredAlertData(i, alertData);
  if (alertData.getLabel() == AlertType.ALERT_HAND_DETECTED) {
	    log("HandTracking", "Detected hand, id: " + alertData.getHandId());
  } else if (alertData.getLabel() == AlertType.ALERT_HAND_NOT_DETECTED) {
    	log("HandTracking", "Hand lost, id: " + alertData.getHandId());
  }
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:55:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011353#M34264</guid>
      <dc:creator>James_T_2</dc:creator>
      <dc:date>2014-12-04T13:55:57Z</dc:date>
    </item>
    <item>
      <title>This seems like a good</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011354#M34265</link>
      <description>&lt;P&gt;This seems like a good opportunity to highlight the method I posted a few days back for converting C# scripts in the SDK manual for use in Unity if anyone is planning on using the scripts in Unity for their project.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/topic/536627" target="_blank"&gt;https://software.intel.com/en-us/forums/topic/536627&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:06:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011354#M34265</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2014-12-04T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Hi Shaleen,</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011355#M34266</link>
      <description>&lt;DIV id="nested_deluminate_fullscreen_workaround" style="background-color: rgba(0, 0, 0, 0);"&gt;
	&lt;P&gt;Hi Shaleen,&lt;/P&gt;

	&lt;P&gt;For a simple app like this, take a look at my project:&lt;/P&gt;

	&lt;P&gt;&lt;A href="https://github.com/andrecarlucci/SharpSenses" target="_blank"&gt;https://github.com/andrecarlucci/SharpSenses&lt;/A&gt;&lt;/P&gt;

	&lt;P&gt;All that code can be replaced by:&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var cam = Camera.Create();&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cam.Start();&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cam.LeftHand.Visible += () =&amp;gt; Console.WriteLine("Hi");&lt;BR /&gt;
		Cheers!&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV id="nested_deluminate_fullscreen_workaround" style="background-color: rgba(0, 0, 0, 0);"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Dec 2014 11:32:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011355#M34266</guid>
      <dc:creator>AndreCarlucci</dc:creator>
      <dc:date>2014-12-05T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Thanks for the replies.</title>
      <link>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011356#M34267</link>
      <description>&lt;P&gt;Thanks for the replies.&lt;/P&gt;

&lt;P&gt;I am stuck with another issue now. I am trying to get the no of faces detected. Here;s my code. it always prints 0.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;    PXCMSenseManager sm = PXCMSenseManager.CreateInstance();

          sm.EnableFace();
            sm.Init();


            // face is a PXCMFaceModule instance

           


            while (sm.AcquireFrame()&amp;gt;= pxcmStatus.PXCM_STATUS_NO_ERROR )
            {

                PXCMFaceModule face2 = sm.QueryFace();
                 PXCMFaceData fdata= face2.CreateOutput();
                 Int32 no = fdata.QueryNumberOfDetectedFaces();
                 Console.WriteLine(no);
              fdata.Dispose();           
            }
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 12:38:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Basic-Hand-Program/m-p/1011356#M34267</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-05T12:38:20Z</dc:date>
    </item>
  </channel>
</rss>

