Skip adverts using Raspberry Pi

Electric Soup

Arkwood loves watching the Dave Channel on his TV set, but hates having to sit through the adverts. ‘Don’t fret,’ I told my seedy Belgian buddy, ‘I’ll write some python code on my Raspberry Pi which will send you an alert when the adverts have ended.’

It wasn’t too difficult to do. First I attached a webcam to my Pi and took a snap of the Dave emblem, the image the channel always uses to signal a TV show is about to start. Here it is captured on Arkwood’s TV set:

pi_advert_image_dave

Great. Now all we need to do is configure the webcam to take a snap of the TV a few times a second, and as soon as it finds a close match to the Dave emblem we can alert Arkwood. Here’s the basic program:

We use Pygame to play a cymbal sound though a set of speakers attached to…

View original post 355 more words

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s