{"id":692,"date":"2013-05-25T17:55:24","date_gmt":"2013-05-25T09:55:24","guid":{"rendered":"http:\/\/tangochen.com\/blog\/?p=692"},"modified":"2014-10-21T17:50:27","modified_gmt":"2014-10-21T09:50:27","slug":"source-code-of-kinect-smile-tracking-is-released","status":"publish","type":"post","link":"http:\/\/tangochen.com\/blog\/?p=692","title":{"rendered":"Source Code of Kinect Smile Tracking Is Released"},"content":{"rendered":"<p><a href=\"http:\/\/tangochen.com\/blog\/?p=683\" title=\"Source Code of Kinect Smile Tracking Will Be Released Soon For Everyone\" target=\"_blank\">Source Code of Kinect Smile Tracking Will Be Released Soon For Everyone<\/a><br \/>\nHere&#8217;s it..<\/p>\n<p>Video of original version:<br \/>\n<iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/FZztpg8v1Bg\" frameborder=\"0\" width=\"560\" height=\"315\"><\/iframe><\/p>\n<p>Now it&#8217;s been improved with some new features.<\/p>\n<p>How it works:<\/p>\n<ol>\n<li><span style=\"line-height: 16px;\">Using face tracking functionality to detect 4 face points: both sides of your mouth and both sides of your nose.<\/span><\/li>\n<li>\nCalculating the length of both sides of your mouth as mouthWidth. The mouthWidth may be wider if you&#8217;re smiling.<br \/>\nSo the program tells you&#8217;re smiling when the mouthWidth larger than a value.<br \/>\nThe particulate value is called Threshold.\n\t<\/li>\n<li>\nEven if you have no changing on your mouth, the mouthWidth would changes when you&#8217;re moving forwards\/backwards to the Kinect sensor.<br \/>\n(It would be larger if you&#8217;re closer to the Kinect.)<br \/>\nSo we need to change the Threshold.<br \/>\nThe Threshold is calculated based on the length of both sides of your nose called noseWidth.<br \/>\nThe noseWidth won&#8217;t be greatly affected by the changing of your face but the distance between your face and Kinect sensor.<br \/>\nSo it would be great to calculate how large the Threshold should be.<br \/>\nAnd we have nothing to deal with Skeleton Tracking like getting the position of your head joint in order to get the distance.\n\t<\/li>\n<li>\nThe Threshold is not set good enough so it may not work for everyone everytime.<br \/>\nAt least it works for me. I&#8217;m not sure if you have a perfect smile like me though.<br \/>\nSo I added a Modify feature. It&#8217;s a slider on the bottom-right of the application which can modify the Threshold. (to make it larger or smaller.)<br \/>\nThis should\/can be improved to be more automatic.\n\t<\/li>\n<\/ol>\n<p>Screen-shot:<br \/>\nYou may be confused of the How-it-works part above before trying the demo without seeing the screen-shot.<br \/>\nCan anyone take a screen-shot of you using the demo and send it to me. I would take a good one and put it here.<br \/>\nYou know I just want people to focus on the idea, the code but not my attractive smile. \ud83d\ude42 (just kidding..)<\/p>\n<p>Source Code:<br \/>\n<a href=\"https:\/\/github.com\/TangoChen\/KinectSmileTracking\" title=\"GitHub.com\/TangoChen\/KinectSmileTracking\" target=\"_blank\">GitHub.com\/TangoChen\/KinectSmileTracking<\/a><br \/>\nDemo:<br \/>\n[download id=&#8221;19&#8243;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source Code of Kinect Smile Tracking Will Be Released Soon For Everyone Here&#8217;s it.. Video of original version: Now it&#8217;s been improved with some new features. How it works: Using face tracking functionality to detect 4 face points: both sides &hellip; <a href=\"http:\/\/tangochen.com\/blog\/?p=692\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[23],"class_list":["post-692","post","type-post","status-publish","format-standard","hentry","category-kinect","category-tech","tag-kinect"],"_links":{"self":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=692"}],"version-history":[{"count":1,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":1964,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692\/revisions\/1964"}],"wp:attachment":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}