{"id":474,"date":"2019-05-27T12:00:05","date_gmt":"2019-05-27T19:00:05","guid":{"rendered":"http:\/\/letsbuildroboticswithshadow8472.com\/?p=474"},"modified":"2019-06-09T23:00:57","modified_gmt":"2019-06-10T06:00:57","slug":"programming-a-pi-to-deter-cats-part-2","status":"publish","type":"post","link":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2019\/05\/27\/programming-a-pi-to-deter-cats-part-2\/","title":{"rendered":"Programming a Pi to Deter Cats: Part 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am moving along towards a feline safety program for my Raspberry Pi. Let&#8217;s get started!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For starters, I was even having doubts if my Pi was even powerful enough for computer vision applications. A quick search gives plenty of harry tutorials on how to install it. I&#8217;m following one here: <a rel=\"noreferrer noopener\" aria-label=\"LINK (opens in a new tab)\" href=\"https:\/\/www.pyimagesearch.com\/2018\/09\/26\/install-opencv-4-on-your-raspberry-pi\/\" target=\"_blank\">LINK<\/a>. I&#8217;m on the Raspberry Pi 3B+, and word has it the Pi 2 was pioneering the field for its kin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also watched some tutorials to get an idea of how OpenCV works, and I think it should track the cabinets and counter. If it tracks something moving on the counter and there is no occlusion (nothing is blocking) of the cabinets, register a hit. On a hit, save a picture for future evaluation, and sound the alarm to get the cat off the counter if it&#8217;s a strong enough hit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I started installing OpenCV, but I ran into some issues. First of all, I am very glad I went it to that workshop I&#8217;ve mentioned before, because the tutorial just gives me wall of text. It helps to have someone knowledgeable to take a look at things when they stop working. It also would have helped if I had seen the troubleshooting section before I went and searched for one particular error I came across and ended up on another tutorial for the same thing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Conditions were challenging. the mouse was crazy sensitive, and if I didn&#8217;t select and copy with the mouse, I ran the risk of typos in the keyboard. In the end, I believe I got a virtual box for Python 3 to run computer vision, but I ran out of time there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the beginning of my post, I mentioned feline safety. It turns out, my father spotted him walking on the stove top, and I really don&#8217;t want him getting burned, let alone the health risk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Final Question: Have you ever used automated deterrents on animals?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am moving along towards a feline safety program for my Raspberry Pi. Let&#8217;s get started! For starters, I was even having doubts if my Pi was even powerful enough for computer vision applications. A quick search gives plenty of harry tutorials on how &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2019\/05\/27\/programming-a-pi-to-deter-cats-part-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Programming a Pi to Deter Cats: Part 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":2,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":483,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/474\/revisions\/483"}],"wp:attachment":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}