{"id":19128,"date":"2018-08-24T10:30:55","date_gmt":"2018-08-24T09:30:55","guid":{"rendered":"https:\/\/www.recantha.co.uk\/blog\/?p=19128"},"modified":"2018-08-23T18:00:46","modified_gmt":"2018-08-23T17:00:46","slug":"smile-activated-catapult-uses-a-raspberry-pi-to-detect-and-reward-smiling-faces","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=19128","title":{"rendered":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19129\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=560%2C315&#038;ssl=1\" alt=\"\" width=\"560\" height=\"315\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=260%2C146&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?resize=160%2C90&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/twitter.com\/benbrabyn\" target=\"_blank\" rel=\"noopener\">Ben Brabyn<\/a> wanted to encourage his friends and family to smile a bit more and so he came up with the solution: marshmellows! A Raspberry Pi and a webcam are used to detect a smiling face and then a hacked toy catapult is used to launch marshmellows at the user. He&#8217;s used a <a href=\"https:\/\/thepihut.com\/products\/motozero\" target=\"_blank\" rel=\"noopener\">MotoZero motor controller from The Pi Hut<\/a>\u00a0to control the catapult and then written some Python code using OpenCV to read the image from the webcam and detect the smile.<\/p>\n<p>You can see it in operation in the video below and <a href=\"https:\/\/www.instructables.com\/id\/Smile-Activated-Marshmallow-Launcher\/\" target=\"_blank\" rel=\"noopener\">read how to do it yourself on this Instructable<\/a>.<\/p>\n<p><iframe loading=\"lazy\" title=\"Smile Activated Marshmallow Launcher\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/ngOYh7-eOf4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ben Brabyn wanted to encourage his friends and family to smile a bit more and so he came up with the solution: marshmellows! A Raspberry Pi and a webcam are used to detect a smiling face and then a hacked&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":19129,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[54,21,50,39,45,51],"tags":[818,817],"class_list":["post-19128","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-accessories","category-games","category-making","category-programming","category-robotics","category-tutorials","tag-catapult","tag-marshmellow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Ben Brabyn wanted to encourage his friends and family to smile a bit more and so he came up with the solution: marshmellows! A Raspberry Pi and a webcam are used to detect a smiling face and then a hacked&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-24T09:30:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces\",\"datePublished\":\"2018-08-24T09:30:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\"},\"wordCount\":124,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1\",\"keywords\":[\"catapult\",\"marshmellow\"],\"articleSection\":[\"Accessories\",\"Games\",\"Making\",\"Programming\",\"Robotics\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\",\"name\":\"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1\",\"datePublished\":\"2018-08-24T09:30:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=19128\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1\",\"width\":800,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=19128#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=19128","og_locale":"en_US","og_type":"article","og_title":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod","og_description":"Ben Brabyn wanted to encourage his friends and family to smile a bit more and so he came up with the solution: marshmellows! A Raspberry Pi and a webcam are used to detect a smiling face and then a hacked&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=19128","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2018-08-24T09:30:55+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/i1.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","type":"image\/png"}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces","datePublished":"2018-08-24T09:30:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128"},"wordCount":124,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","keywords":["catapult","marshmellow"],"articleSection":["Accessories","Games","Making","Programming","Robotics","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=19128#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128","url":"https:\/\/www.recantha.co.uk\/blog\/?p=19128","name":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","datePublished":"2018-08-24T09:30:55+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=19128"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","width":800,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=19128#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Smile-activated catapult uses a Raspberry Pi to detect and reward smiling faces"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/08\/marsh.png?fit=800%2C450&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-4Yw","jetpack-related-posts":[{"id":15492,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15492","url_meta":{"origin":19128,"position":0},"title":"Using a Raspberry Pi to control a face-tracking desk fan","author":"Michael Horne","date":"16 September 2016","format":false,"excerpt":"The Foundation have just blogged this nice little project from Instructables\u00a0user DevinL9. He's taken\u00a0a Raspberry Pi, hooked it up to a servo and then used the servo to control the position of a small fan with a small webcam mounted on top. The webcam provides a video feed to the\u2026","rel":"","context":"In &quot;Home automation&quot;","block_context":{"text":"Home automation","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=25"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn.instructables.com\/F0V\/LF4C\/ISCBEMGC\/F0VLF4CISCBEMGC.MEDIUM.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn.instructables.com\/F0V\/LF4C\/ISCBEMGC\/F0VLF4CISCBEMGC.MEDIUM.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/cdn.instructables.com\/F0V\/LF4C\/ISCBEMGC\/F0VLF4CISCBEMGC.MEDIUM.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":10455,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=10455","url_meta":{"origin":19128,"position":1},"title":"Playing card detection using a #RaspberryPi and OpenCV","author":"Michael Horne","date":"20 July 2014","format":false,"excerpt":"R D Milligan has been looking at ways to use his Raspberry Pi and\u00a0webcam to detect playing cards and build a 'Poker bot' and he's now got it recognising some cards. It's an interesting project and he's provided all the code he's developed along the way on his blog. So\u2026","rel":"","context":"In &quot;Photography&quot;","block_context":{"text":"Photography","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=36"},"img":{"alt_text":"","src":"https:\/\/rdmilligan.files.wordpress.com\/2014\/07\/playingcards_3hearts_3diamonds.jpg?w=350&h=200&crop=1","width":350,"height":200,"srcset":"https:\/\/rdmilligan.files.wordpress.com\/2014\/07\/playingcards_3hearts_3diamonds.jpg?w=350&h=200&crop=1 1x, https:\/\/rdmilligan.files.wordpress.com\/2014\/07\/playingcards_3hearts_3diamonds.jpg?w=525&h=300&crop=1 1.5x"},"classes":[]},{"id":15783,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15783","url_meta":{"origin":19128,"position":2},"title":"Spinach plants and Raspberry Pi used to detect bomb material","author":"Michael Horne","date":"31 October 2016","format":false,"excerpt":"A team from MIT has published a paper in which they describe a bomb detection experiment conducted with spinach plants. The plants, which are sensitive to the presence of \"nitro-aromatics\" (key components of several bomb-making substances), have\u00a0carbon-nanotube-based nanoparticles embedded in their leaves that give off infra-red light. A Raspberry Pi\u2026","rel":"","context":"In &quot;Environment&quot;","block_context":{"text":"Environment","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=69"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/10\/nanosensor-plants.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/10\/nanosensor-plants.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/10\/nanosensor-plants.jpeg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":17067,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17067","url_meta":{"origin":19128,"position":3},"title":"Very, very frightening indeed: Lightning detector uses a sensor and a Raspberry Pi","author":"Michael Horne","date":"9 July 2017","format":false,"excerpt":"France-based Hexalyse\u00a0has hooked up an\u00a0AS3935 Franklin Lightning Sensor\u00a0to his Raspberry Pi. This sensor is able to detect the approach of a storm by detecting lightning up to 40km away and it comes on a little breakout board that can interact with the Pi over the I2C bus. He used a\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/07\/lightning.jpg?fit=603%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/07\/lightning.jpg?fit=603%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/07\/lightning.jpg?fit=603%2C800&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":13127,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13127","url_meta":{"origin":19128,"position":4},"title":"Oxford Flood Network uses Raspberry Pis to detect rising water","author":"Michael Horne","date":"10 August 2015","format":false,"excerpt":"The Oxford Flood Network uses a network of ultrasonic sensors in a flood-prone area to detect water levels and broadcast their data over short distances to Raspberry Pi-based gateways; these aggregate the data and pass it to an open online database. The detection devices are Arduino-based. They then communicate to\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/40.media.tumblr.com\/ccc7fbb285047270bae081c4553b6276\/tumblr_inline_nnjga7Yb431qz9jsi_500.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":13952,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13952","url_meta":{"origin":19128,"position":5},"title":"Build a KittyCam using a Raspberry Pi and Node.js","author":"Michael Horne","date":"28 December 2015","format":false,"excerpt":"During the summer, Tomomi Imura built a Node.js app which captured images from the Raspberry Pi camera module and used animal facial recognition to store them based on whether or not her pet cat was detected. The Pi uses a PIR sensor to detect movement. Read the complete write-up of\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/lh3.googleusercontent.com\/UuKlrNQWs5wFciRqI8qiZKTVoh4XrTBa40LD5mUa5MIn=w1346-h757-no","width":350,"height":200,"srcset":"https:\/\/lh3.googleusercontent.com\/UuKlrNQWs5wFciRqI8qiZKTVoh4XrTBa40LD5mUa5MIn=w1346-h757-no 1x, https:\/\/lh3.googleusercontent.com\/UuKlrNQWs5wFciRqI8qiZKTVoh4XrTBa40LD5mUa5MIn=w1346-h757-no 1.5x, https:\/\/lh3.googleusercontent.com\/UuKlrNQWs5wFciRqI8qiZKTVoh4XrTBa40LD5mUa5MIn=w1346-h757-no 2x, https:\/\/lh3.googleusercontent.com\/UuKlrNQWs5wFciRqI8qiZKTVoh4XrTBa40LD5mUa5MIn=w1346-h757-no 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19128"}],"version-history":[{"count":1,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19128\/revisions"}],"predecessor-version":[{"id":19130,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19128\/revisions\/19130"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/media\/19129"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}