You are on page 1of 4

Google Cloud Platform

My console
Why Google
Products
Solutions
Launcher
Pricing
Customers
Documentation
Support
Partners
Uji Coba Gratis
Hubungi Penjual
Compute
Compute Engine
App Engine
Container Engine
Storage
Storage
Bigtable
Datastore
SQL
Networking
Virtual Networking
Load Balancing
DNS
Interconnect
CDN
Big Data
BigQuery
Dataflow
Dataproc
Datalab
Pub/Sub
Machine Learning
ML Platform
Vision API
Speech API
Translate API
Operations & Tools
Stackdriver
Deployment Manager
Endpoints
IAM
Source Repositories
Produk Documentation Google Cloud Vision API
Google Cloud Vision API
Kirim masukan
Cloud Vision API Documentation
Quickstart
How-to Guides
Authenticating to the API
APIs & Reference
JSON Reference

Concepts
Requests and Responses
Best Practices
Samples & Tutorials
Label Detection Tutorial
Face Detection Tutorial
Cloud Vision API Samples
Resources
Pricing
Support
Legal
Quickstart
Before you begin
If you haven't done so already, set up your project and create a Google Cloud St
orage bucket, as explained below.
Set up your project
In the Cloud Platform Console, go to the Projects page and select or create
a new project.
Go to the Projects page
Enable billing for your project.
Go to the Billing page
Enable the Cloud Vision API.
Enable the API
You do not need to get credentials after enabling the API.
Create a Cloud Storage bucket
In the Cloud Platform Console, go to the Cloud Storage browser.
Go to the Cloud Storage browser
Click Create bucket.
In the Create bucket dialog, specify the following attributes:
Name: A unique bucket name. Do not include sensitive information in the
bucket name, as the bucket namespace is global and publicly visible.
Storage class: Standard
A location where bucket data will be stored.
Click Create.
Make a request to the Cloud Vision API service
Download demo-image.jpg. (You may need to right-click the link.)
Open the Cloud Platform Console Storage Browser, select a bucket, then click
UPLOAD FILES and select the demo-image.jpg file to upload from your local machi
ne to your Cloud Storage bucket.
This is the image file that you just uploaded:
After the file is uploaded and listed in the Cloud Storage Browser, share th
e image publicly by clicking the Public link box in the right column of the list
ing.
Complete the interactive API Explorer template, below, by replacing bucket i
n the source?gcsImageUri field with the name of the Cloud Storage bucket where y

ou uploaded the demo-image.jpg file.


Authorize requests using OAuth 2.0:
fields
Selector specifying which fields to include in a partial response.
Use fields editor
Request body
{
"requests":
[
{
"features":
[
{
"type":""
}
]
"image":
{
"source":
{
"gcsImageUri":""
}
}
}
]
}

Execute without OAuth


Click Execute without OAuth to send the request to the service (you may have
to click twice). After less than one second (typically), the JSON response appe
ars above.
Congratulations! You've made your first images.annotate request to the Cloud Vis
ion API service.
Clean up
To avoid unnecessary Google Cloud Platform charges, use the Cloud Platform Conso
le to delete your Cloud Storage bucket (and your project) if you do not need the
m.
What's next
Work through the Label Detection and Face Detection tutorials.
See the Sample Applications.
Apakah laman ini membantu? Beri tahu kami pendapat Anda:
Except as otherwise noted, the content of this page is licensed under the Creati
ve Commons Attribution 3.0 License, and code samples are licensed under the Apac
he 2.0 License. For details, see our Site Policies.
Terakhir diperbarui April 29, 2016.
Products
App Engine
Compute Engine

Container Engine
BigQuery
Networking
Storage
SQL
Datastore
Dataflow
More...
Learn
App Engine Tutorial
Compute Engine Tutorial
BigQuery Tutorial
Documentation
Training
Deploy
LAMP
MongoDB
Hadoop
MEAN
More...
Resources
Why Google
Customers
Partners
Security
Compliance
Cloud Locations
Support
System Status
UX Research
Jobs
Pricing
Pricing
Calculator
Philosophy
Google Persyaratan Layanan Kebijakan Privasi