{"id":1341,"date":"2018-11-28T22:10:04","date_gmt":"2018-11-29T03:10:04","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/?p=1341"},"modified":"2018-11-28T22:10:04","modified_gmt":"2018-11-29T03:10:04","slug":"adam-moran-computer-vision-gestures","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/asmoran\/adam-moran-computer-vision-gestures\/","title":{"rendered":"Adam Moran &#8211; Computer Vision Gestures"},"content":{"rendered":"<p>I&#8217;m going to say this right now. I&#8217;m a boring individual. I don&#8217;t have many activities that I&#8217;m passionate about, especially ones involving lots of movement (unless it&#8217;s pacing; I seem to like doing that). But I do like cats, including wild cats. When I saw that I can use Max to check for motion between webcam frames, I had a good idea of what I wanted to do.<\/p>\n<p><iframe loading=\"lazy\" width=\"1000\" height=\"750\" src=\"https:\/\/www.youtube.com\/embed\/6LnRfAs7lrk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Unfortunately, my video recording software didn&#8217;t like recording from the webcam (or, at the very least, didn&#8217;t like recording the screen and webcam at the same time). But thanks to the patch, you can still see the interaction. I used the motion scrubber patch as a base, but changed what happens with the output after it passes through cooked motion. It instead plays one of five videos of a leopard. Its default state is sleeping in a tree. However, if it detects sufficient movement, it&#8217;ll get out of the tree and begin prowling. During this phase, the patch records how much motion is going on. If it surpasses a threshold, the leopard claims its prey (you) and locks interaction (there&#8217;s a reset button in the patch to unlock interaction again). If the movement does not surpass the threshold, the leopard will climb back up the tree and return to its nap.<\/p>\n<p>Here is the patch:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1344\" src=\"http:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-800x532.png\" alt=\"\" width=\"800\" height=\"532\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-800x532.png 800w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-768x511.png 768w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-1024x681.png 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-960x640.png 960w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch-451x300.png 451w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/bigKitty_patch.png 1159w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to say this right now. I&#8217;m a boring individual. I don&#8217;t have many activities that I&#8217;m passionate about, especially ones involving lots of movement (unless it&#8217;s pacing; I seem to like doing that). But I do like cats, including wild cats. When I saw that I can use Max to check for motion&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/asmoran\/adam-moran-computer-vision-gestures\/\">Read More<\/a><\/div>\n","protected":false},"author":101,"featured_media":1345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-1341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-vision-gestures"],"jetpack_featured_media_url":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-content\/uploads\/sites\/8\/2018\/11\/smol_leopard.jpg","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/posts\/1341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/users\/101"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/comments?post=1341"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":1347,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/posts\/1341\/revisions\/1347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/media\/1345"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd3200-b18\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}