Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino By Example

You're reading from  Arduino By Example

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781785289088
Pages 242 pages
Edition 1st Edition
Languages
Authors (2):
 Adith Jagadish Boloor Adith Jagadish Boloor
Profile icon Adith Jagadish Boloor
Adith Jagdish Boloor Adith Jagdish Boloor
Profile icon Adith Jagdish Boloor
View More author details

Dealing with the image


As discussed before, when Arduino sends a message to Python, it is going to take a snapshot using the camera and save it to the computer. What do we do with it, then? How do we upload it to a file sharing platform? There are several ways to do this, but in this chapter, we will be using Imgur. Yes, the same Imgur that you have been using, knowingly or unknowingly, on Reddit or 9gag.

Go to http://imgur.com/ and sign up for a new account.

Once you have verified your account, go to https://api.imgur.com/oauth2/addclient to add a new application so that Imgur permits you to post images using a script. Use the following information:

  • Application name: Arduino burglar alarm

  • Authorization type: OAuth 2 authorization without callback URL

  • Email: <your email>

  • Description: Using Arduino to catch the cookie thieves

Now proceed, and you will get a page like this:

Imgur will give you the Client ID and Client secret. Save them in a safe location as we will need them later.

Let us...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}