SlideShare a Scribd company logo
Introduction to Google Cloud
Platform and APIs
Alex Marginean
Google Cloud Platform
Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing
services that runs on the same infrastructure that Google uses internally for its
end-user products, such as Google Search, Gmail, Google Drive, and YouTube
- Wikipedia
Introduction
With GCP, customers are able to access computer resources housed in Google’s
data centers around the world for free or on a pay-per-use basis - A Cloud Guru
Data center locations
Google Cloud Platform
Customers
Google Cloud Platform
GCP is being used by almost 1M companies worldwide
Products
Google Cloud Platform
Products
Google Cloud Platform
Application Programming Interface
APIs
Client API Database
Request
Response
Cloud Vision API allows developers to easily integrate vision
detection features within applications. It offers powerful
pre-trained machine learning models through REST and RPC
APIs.
Assign labels to images and quickly classify them into millions
of predefined categories. Detect objects, read printed and
handwritten text, and build valuable metadata into your
image catalog.
What’s this?
Cloud Vision API
● Detect objects
● Printed/Handwritten text detection
● Image labeling
● Dominant colors
etc.
What does it do?
Cloud Vision API
Let’s see this in action
https://cloud.google.com/vision
Start using it in your apps
Cloud Vision API
Install Vision API
API & Services → Library
→ Cloud Vision API
Create a new
Project on GCP
Select a Project → New
Project
Generate
Credentials
API & Services →
Credentials → Create
Credentials → Service
Account
Write your code
Don’t forget to install
google-cloud-vision library
for python
1 2 3 4
image_uri = 'gs://cloud-samples-data/vision/using_curl/shanghai.jpeg'
client = vision.ImageAnnotatorClient()
image = vision.Image()
image.source.image_uri = image_uri
response = client.label_detection(image=image)
print('Labels (and confidence score):')
print('=' * 30)
for label in response.label_annotations:
print(label.description, "({:.2f}%)".format(label.score * 100))
● Mood meter App - Identify people’s emotions
● Theme builder - Identify dominant colors
● Instagram tagger - generate tags based on image
You can do whatever you think!
Usage ideas
Cloud Vision API
Distance Matrix API is part of the Google Maps Platform APIs
and provides travel distance and time for a matrix of origins
and destinations
What is it?
Distance Matrix API
Start using it in your apps
Distance Matrix API
Install Distance
Matrix API
API & Services → Library
→ Distance Matrix API
Create a new
Project on GCP
Select a Project → New
Project
Generate
Credentials
API & Services →
Credentials → Create
Credentials → API Key
Write your code
No external library needed
1 2 3 4
Code Demo
Distance Matrix API
import requests
url = "https://maps.googleapis.com/maps/api/distancematrix/json"
params = {
"origins": "",
"destinations": "",
"units": "",
"key": "”
}
response = requests.get(url, params=params)
print(response.json())
● Distance estimation
● Time estimation
● Directions
● Traffic information
● Many more!
Use Cases
Distance Matrix API
Many Useful APIs
● Analytics API
● Time Zone API
● Maps Embed API
● Google Docs API
● Maps Static API
● Distance Matrix API
● Calendar API
● Places API
And many more!
Useful Links
Google Cloud Developer Cheatsheet
googlecloudcheatsheet.withgoogle.com/
Information on different Google Cloud Products
available
Google Cloud Codelabs
codelabs.developers.google.com/?product=googlecloud
Codelabs on how to implement specific features in
a programming language/framework
Google Cloud Skills Boost
cloudskillsboost.google/paths
Learning Pathways for a bunch of Google Cloud
topics
Feedback Form
Questions?
Thank you for attending!

More Related Content

Introduction to Google Cloud Platform and APIs

  • 1. Introduction to Google Cloud Platform and APIs Alex Marginean
  • 2. Google Cloud Platform Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Gmail, Google Drive, and YouTube - Wikipedia Introduction With GCP, customers are able to access computer resources housed in Google’s data centers around the world for free or on a pay-per-use basis - A Cloud Guru
  • 4. Customers Google Cloud Platform GCP is being used by almost 1M companies worldwide
  • 7. Application Programming Interface APIs Client API Database Request Response
  • 8. Cloud Vision API allows developers to easily integrate vision detection features within applications. It offers powerful pre-trained machine learning models through REST and RPC APIs. Assign labels to images and quickly classify them into millions of predefined categories. Detect objects, read printed and handwritten text, and build valuable metadata into your image catalog. What’s this? Cloud Vision API
  • 9. ● Detect objects ● Printed/Handwritten text detection ● Image labeling ● Dominant colors etc. What does it do? Cloud Vision API
  • 10. Let’s see this in action https://cloud.google.com/vision
  • 11. Start using it in your apps Cloud Vision API Install Vision API API & Services → Library → Cloud Vision API Create a new Project on GCP Select a Project → New Project Generate Credentials API & Services → Credentials → Create Credentials → Service Account Write your code Don’t forget to install google-cloud-vision library for python 1 2 3 4
  • 12. image_uri = 'gs://cloud-samples-data/vision/using_curl/shanghai.jpeg' client = vision.ImageAnnotatorClient() image = vision.Image() image.source.image_uri = image_uri response = client.label_detection(image=image) print('Labels (and confidence score):') print('=' * 30) for label in response.label_annotations: print(label.description, "({:.2f}%)".format(label.score * 100))
  • 13. ● Mood meter App - Identify people’s emotions ● Theme builder - Identify dominant colors ● Instagram tagger - generate tags based on image You can do whatever you think! Usage ideas Cloud Vision API
  • 14. Distance Matrix API is part of the Google Maps Platform APIs and provides travel distance and time for a matrix of origins and destinations What is it? Distance Matrix API
  • 15. Start using it in your apps Distance Matrix API Install Distance Matrix API API & Services → Library → Distance Matrix API Create a new Project on GCP Select a Project → New Project Generate Credentials API & Services → Credentials → Create Credentials → API Key Write your code No external library needed 1 2 3 4
  • 16. Code Demo Distance Matrix API import requests url = "https://maps.googleapis.com/maps/api/distancematrix/json" params = { "origins": "", "destinations": "", "units": "", "key": "” } response = requests.get(url, params=params) print(response.json())
  • 17. ● Distance estimation ● Time estimation ● Directions ● Traffic information ● Many more! Use Cases Distance Matrix API
  • 18. Many Useful APIs ● Analytics API ● Time Zone API ● Maps Embed API ● Google Docs API ● Maps Static API ● Distance Matrix API ● Calendar API ● Places API And many more!
  • 19. Useful Links Google Cloud Developer Cheatsheet googlecloudcheatsheet.withgoogle.com/ Information on different Google Cloud Products available Google Cloud Codelabs codelabs.developers.google.com/?product=googlecloud Codelabs on how to implement specific features in a programming language/framework Google Cloud Skills Boost cloudskillsboost.google/paths Learning Pathways for a bunch of Google Cloud topics