<?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 Thank you johannes, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094855#M66612</link>
    <description>&lt;P&gt;Thank you johannes,&lt;/P&gt;

&lt;P&gt;i am implementing it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 12:50:05 GMT</pubDate>
    <dc:creator>Khalil_S_</dc:creator>
    <dc:date>2016-08-29T12:50:05Z</dc:date>
    <item>
      <title>Recognize gesture if it is detected for particular interval / seconds</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094848#M66605</link>
      <description>&lt;P&gt;I want gesture to be Recognize only if it is detected for some seconds (3 secs).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;camera should not consider it as gesture if hand gesture is changed before 3 secs.&lt;/P&gt;

&lt;P&gt;How to achieve this ??&lt;/P&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 10:48:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094848#M66605</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-08-12T10:48:24Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094849#M66606</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So you want the hands to be not moved for 3 seconds and then recognize gestures?&lt;/P&gt;

&lt;P&gt;I would try some method like checkHandMotion() and repeatedly measure its status. (f.e. returns 0 if hand not moved).&lt;/P&gt;

&lt;P&gt;You would probably need to run this method about every 50ms or so. save the results for up to 3 seconds and then check over the saved results if the hand has moved during the last 3 seconds. if no movement &amp;amp;&amp;amp; detected gesture then execute a command&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;if you have a minimum example for the recognition post the code here, i will try to give more details then&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 10:07:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094849#M66606</guid>
      <dc:creator>Johannes_V_</dc:creator>
      <dc:date>2016-08-13T10:07:02Z</dc:date>
    </item>
    <item>
      <title>I am using many gestures in</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094850#M66607</link>
      <description>&lt;P&gt;I am using many gestures in my project ,&lt;/P&gt;

&lt;P&gt;and it detects gestures very quickly even when i don't do that gesture,&lt;/P&gt;

&lt;P&gt;thus i want it to detect only if user do gesture for particular interval(3 secs) .i.e v-sign for 3 sec then only it must perform action assigned on v-sign and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:57:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094850#M66607</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-08-15T11:57:50Z</dc:date>
    </item>
    <item>
      <title>What camera do you have? Do</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094851#M66608</link>
      <description>&lt;P&gt;What camera do you have? Do you have some code?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:02:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094851#M66608</guid>
      <dc:creator>Johannes_V_</dc:creator>
      <dc:date>2016-08-17T07:02:51Z</dc:date>
    </item>
    <item>
      <title>I am using SR-300 camera. </title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094852#M66609</link>
      <description>&lt;P&gt;I am using SR-300 camera.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 04:47:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094852#M66609</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-08-19T04:47:20Z</dc:date>
    </item>
    <item>
      <title>From hand Analysis - </title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094853#M66610</link>
      <description>&lt;P&gt;From hand Analysis -&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;int firedGesturesNumber = handAnalysis.QueryFiredGesturesNumber();&lt;/P&gt;

&lt;P&gt;for(int i = 0; i &amp;lt; firedGesturesNumber; i++)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PXCMHandData.GestureData gestureData;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (handAnalysis.QueryFiredGestureData(i, out gestureData) == pxcmStatus.PXCM_STATUS_NO_ERROR)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if (handAnalysis.IsGestureFired("thumb_up", out gestureData))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gesnum = 1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (handAnalysis.IsGestureFired("v_sign", out gestureData))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gesnum = 2;&lt;/P&gt;

&lt;P&gt;gesnum here is global variable which i am assigning manually and using it below in updateUi method in switch case -&amp;nbsp;&lt;/P&gt;

&lt;P&gt;under updateUi method -&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;switch (gesNum)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 1:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label1.Content = "Gestured Fired 01 thumb Up ";&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;break;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;case 1=2:&lt;/SPAN&gt;&lt;BR style="font-size: 13.008px; line-height: 19.512px;" /&gt;
	&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label1.Content = "Gestured Fired 02 &lt;/SPAN&gt;V sign&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;";&lt;/SPAN&gt;&lt;BR style="font-size: 13.008px; line-height: 19.512px;" /&gt;
	&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;break;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;And so on.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 04:59:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094853#M66610</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-08-19T04:59:55Z</dc:date>
    </item>
    <item>
      <title>Hello Khalil,</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094854#M66611</link>
      <description>&lt;P&gt;Hello Khalil,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Some things I have seen that work really good are going over "votes" in the update method.&lt;/P&gt;

&lt;P&gt;- detect the gesture and make a couple of votes for the recognized one ( at least 2)&lt;/P&gt;

&lt;P&gt;- decrease the amount of votes for each gesture by 1 each step but only if the amount of votes for the gestures themselves is &amp;gt; 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;- at the end of update method, check if one of the gestures has enough votes to be taken as "winner". this is done by a specific thershold.&lt;/P&gt;

&lt;P&gt;- if a winner has been found, dont forget to reset all votes.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I dont have this camera on my own so I "guessed" the following code, if there are problems, just tell me :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//GLOBAL variables:
int voteForGesture1 = 0, voteForGesture2 = 0 , voteForGesture3 = 0; // all of them
int thresholdForGestureDetection = 200 // lower this value for more detection, rise this value for less detection


// this looks like an updateFrame method?
int firedGesturesNumber = handAnalysis.QueryFiredGesturesNumber();

for(int i = 0; i &amp;lt; firedGesturesNumber; ++i)
            {

                PXCMHandData.GestureData gestureData;
                if (handAnalysis.QueryFiredGestureData(i, out gestureData) == pxcmStatus.PXCM_STATUS_NO_ERROR)
                {
                    if (handAnalysis.IsGestureFired("thumb_up", out gestureData))
                        gesnum = 1;
                    if (handAnalysis.IsGestureFired("v_sign", out gestureData))
                        gesnum = 2;
                }
            }





//this looks like a validate method at the end of each frame?

if(voteForGesture1&amp;gt;0)
    voteForGesture1--;
if(voteForGesture2&amp;gt;0)
    voteForGesture2--;
if(voteForGesture3&amp;gt;0)
    voteForGesture3--;

 switch (gesNum)
                {
                    case 1:
                        voteForGesture1+=3;break;
                    case 2:
                        voteForGesture2+=3;break;
                    case 3:
                        voteForGesture3+=3;break;

                }

if (voteForGesture1 &amp;gt;= thresholdForGestureDetection){
       label1.Content = "Gestured Fired 01 thumb Up ";
       voteForGesture1=0;
       voteForGesture2=0;
       voteForGesture3=0;
}
    
    
if (voteForGesture2 &amp;gt;= thresholdForGestureDetection){
    label1.Content = "Gestured Fired 02 V sign ";  
    voteForGesture1=0;
    voteForGesture2=0;
    voteForGesture3=0;
}
    

&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:20:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094854#M66611</guid>
      <dc:creator>Johannes_V_</dc:creator>
      <dc:date>2016-08-29T07:20:54Z</dc:date>
    </item>
    <item>
      <title>Thank you johannes,</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094855#M66612</link>
      <description>&lt;P&gt;Thank you johannes,&lt;/P&gt;

&lt;P&gt;i am implementing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:50:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094855#M66612</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-08-29T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Thank you Johannes, Code</title>
      <link>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094856#M66613</link>
      <description>&lt;P&gt;Thank you Johannes, Code worked for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:39:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recognize-gesture-if-it-is-detected-for-particular-interval/m-p/1094856#M66613</guid>
      <dc:creator>Khalil_S_</dc:creator>
      <dc:date>2016-09-01T12:39:50Z</dc:date>
    </item>
  </channel>
</rss>

