Hi there fellow AI Junkies!
What is the deal with all these robotics and AI advancements these days? They never seem to stop advancing!
The truth is, the robotics and AI advancements that you see on your daily video list or news feed are all high-end projects that have been backed by impressive amounts of funding and hardware, both which poor undergraduates like myself seem to lack right now. That's where Cloud Computing comes into play.
Cloud Computing allows users all over the World Wide Web to be directly connected to various APIs that provide them with an advanced functionality that usually asks for a tall order in terms of hardware performance and networking. Still unable to understand? Basically, every developer that has FREELY subscribed to these cloud computing services that now create the robot or product of their dreams by just CALLING AN API. It's like calling a mechanic to come over to your house to install a stainless steel bio metric door, except that it's instant!.
In this article, we will be begin exploring the depths of Microsoft's Cloud Computing service known as Azure. Furthermore we will also be introduced to one of their Cognitive Services APIs, the Computer Vision API.
As is the trend with all my blog posts, we will be applying said API using Python 3. Time to set up!
Setup
To subscribe to Microsoft's Azure toolkit, you need to create an account in Microsoft Azure's Website. Like so :
Link Here : https://azure.microsoft.com/en-us/
After doing so, Click on the big Start Free button ( You can't miss it! ) and then you will be redirected to the following page to fill in your Sign In details which include your Microsoft Account Email and Password :
If you haven't created an account before, you should additionally fill out your credit card and contact details (That's not too hard!).
BUT, if you are just curious to try this API out, you can just click on the Try the Computer Vision API button in the following page :
After doing so, you will be redirected to :
Get your API Key by following the above image to generate a sample key that you can use to test out the features of Computer Vision!
You will be given 2 keys to use for a period of days. Copy anyone of the endpoints and a key and you are all set!
(Sorry for the yellow mess! Had to cover up my keys XP )
Implementation
Computer Vision allows you to do many things with an image. One of the many things that is about to covered right now is just Analyzing an Image to provide you with features that the Microsoft's deep learning model has found out about your image. Type your Python code as follows and fill in the blanks. Don't worry, the code has been commented for your convenience!
| Click The Code to Get a Better View! |
After you run your code, the following output will be shown on your terminal :
| Click to Zoom In |
The output is waayyy too long for my terminal to show properly, here's a clearer version of the output we got back from the Computer Vision API :
| Click to Zoom In |
And there you have it! You have successfully analyzed an image on the web by just typing a few lines of Python Code! Isn't cloud computing wonderful? Look forward to more posts on other tools of Azure!

Comments
Post a Comment