{"id":2316,"date":"2019-12-13T13:29:52","date_gmt":"2019-12-13T18:29:52","guid":{"rendered":"https:\/\/dems.asc.ohio-state.edu\/?p=2316"},"modified":"2019-12-13T13:29:52","modified_gmt":"2019-12-13T18:29:52","slug":"cycle-2-hand-tracking-algo","status":"publish","type":"post","link":"https:\/\/dems.asc.ohio-state.edu\/?p=2316","title":{"rendered":"Cycle 2 &#8211; Hand tracking algo"},"content":{"rendered":"\n<p>I spent the majority of the time leading up to this cycle devising a hand-tracking algorithm that could efficiently and robustly track the position of the fingers in (one) hand. There are a few approaches I took:<\/p>\n\n\n\n<p>Approach 1: Get the position of the palm of the hand from polling the leap motion controller. Then subtract the difference of the finger position to get its relative position.<\/p>\n\n\n\n<p>Pros: Consistent, deals with location away from Leap motion controller well<\/p>\n\n\n\n<p>Cons: Gives bad data at certain orientations<\/p>\n\n\n\n<p>Approach 2: Get the differences of the finger positions in relation to each other. These deltas will provide relative finger positions to each other.<\/p>\n\n\n\n<p>Pros: Works well at most hand orientations<\/p>\n\n\n\n<p>Cons: Not as good when fingers close together<\/p>\n\n\n\n<p>Approach 3: Check to see if each finger is extended and generate a unique code corresponding to each finger for each frame.This is the approach I went with. This makes it much easier to program as it abstracts away a lot of the calculations involved. Also, this ended up being arguably the most robust out of the three due to only using Leap Motion&#8217;s api.<\/p>\n\n\n\n<p>Pros: Very robust, easy to program, works well at most orientations<\/p>\n\n\n\n<p>Cons: Will have to make hand signals simpler to effectively use this approach.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent the majority of the time leading up to this cycle devising a hand-tracking algorithm that could efficiently and robustly track the position of the fingers in (one) hand. There are a few approaches I took: Approach 1: Get the position of the palm of the hand from polling the leap motion controller. Then [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2316","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/posts\/2316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2316"}],"version-history":[{"count":1,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/posts\/2316\/revisions"}],"predecessor-version":[{"id":2318,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=\/wp\/v2\/posts\/2316\/revisions\/2318"}],"wp:attachment":[{"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dems.asc.ohio-state.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}