Integrate with Machine Learning APIs: Challenge Lab Tutorial

Task 1: Configure a service account to access the Machine Learning APIs, BigQuery, and Cloud Storage

export SANAME=challenge
gcloud iam service-accounts create $SANAME
1) gcloud projects add-iam-policy-binding $DEVSHELL_PROJECT_ID --member=serviceAccount:$SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com --role=roles/bigquery.admin2) gcloud projects add-iam-policy-binding $DEVSHELL_PROJECT_ID --member=serviceAccount:$SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com --role=roles/storage.admin

Task 2: Create and download a credential file for your Service Account

1) gcloud iam service-accounts keys create sa-key.json --iam-account $SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com2) export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/sa-key.json3) gsutil cp gs://$DEVSHELL_PROJECT_ID/analyze-images.py .

Task 3 & 4: Modify the Python script to extract text from image files

python3 analyze-images.py <PROJECT_NAME> <BUCKET_NAME>

Task 5: Identify the most common non-English language used in the signs in the data set

  1. Click Navigation menu > BigQuery.

--

--

--

Reach out to me at https://twitter.com/itsajil

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Announcing Community Airdrop for New Yield Farming token

5 Ways to Overcome Writer’s Block as a Technical Writer

iOS : Coordinator pattern in Swift

Static vs Dynamic libraries.

Using docker as develop environment

AWS Simple Queue Service (SQS) and Simple Notification Service (SNS)

Site-to-Site VPN on a Single Host Using OpenVPN

ART/IMAGE USING ARRAYS AND NUMPY IN PYTHON

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajil T U

Ajil T U

Reach out to me at https://twitter.com/itsajil

More from Medium

My Journey to installing Apache on CentOS 7

Beginner’s Guide To Git And Github Part 2

Python Programs for Beginner Bioinformatics — Part 4

Kevin Ashton, 1999 — IoT