Cheer Me Up

About the project

When the Google AIY vision kit detects you're sad, it'll email you a random picture of a dog from Reddit.

Project info

Difficulty: Easy

Platforms: Raspberry Pi

Estimated time: 1 hour

License: MIT license (MIT)

Items used in this project

Hardware components

Raspberry Pi AIY Vision Kit Raspberry Pi AIY Vision Kit x 1

Software apps and online services

Sendgrid Sendgrid A sendgrid account is needed to send the emails


This project is designed to help improve people's moods. It does this using machine learning to detect emotions, and if they're consistently sad for a long time, then it will email them an image of a dog fetched from Reddit. I thought this would be a fun project, and it meant I got to see lots of dog pictures, and who doesn't like that! It works using the methods from the Google AIY python library, this allows you to continuously analyse a scene and detect faces and give their joy a score from 0 to 1. If their joy is less than 0.1 for 20 scans in a row, then the program will trigger the email section of the program, this fetches an image using the Reddit API, then sends it out using SendGrid.

Here is an example output


Google AIY Emotion


Photo of sam-robbins


3rd Year Computer Science Student at the University of Durham, UK. Into all things Raspberry Pi, Arduino and electronics


Leave your feedback...