Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8123cdd

Browse filesBrowse files
gguussdpebot
authored andcommitted
* Adds vision 1.1 features * Update README
1 parent beaec24 commit 8123cdd
Copy full SHA for 8123cdd

File tree

Expand file treeCollapse file tree

5 files changed

+448
-174
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+448
-174
lines changed

‎vision/cloud-client/README.rst

Copy file name to clipboardExpand all lines: vision/cloud-client/README.rst
+67-2Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
88

99

1010

11-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
11+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
1212

1313
Setup
1414
-------------------------------------------------------------------------------
@@ -82,6 +82,71 @@ To run this sample:
8282
$ python quickstart.py
8383
8484
85+
Detect
86+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
87+
88+
89+
90+
To run this sample:
91+
92+
.. code-block:: bash
93+
94+
$ python detect.py
95+
96+
usage: detect.py [-h]
97+
{faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,fulltext,fulltext-uri}
98+
...
99+
100+
This application demonstrates how to perform basic operations with the
101+
Google Cloud Vision API.
102+
103+
Example Usage:
104+
python detect.py text ./resources/wakeupcat.jpg
105+
python detect.py labels ./resources/landmark.jpg
106+
python detect.py web ./resources/landmark.jpg
107+
python detect.py web-uri http://wheresgus.com/dog.JPG
108+
python detect.py faces-uri gs://your-bucket/file.jpg
109+
110+
For more information, the documentation at
111+
https://cloud.google.com/vision/docs.
112+
113+
positional arguments:
114+
{faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,fulltext,fulltext-uri}
115+
faces Detects faces in an image.
116+
faces-uri Detects faces in the file located in Google Cloud
117+
Storage or the web.
118+
labels Detects labels in the file.
119+
labels-uri Detects labels in the file located in Google Cloud
120+
Storage or on the Web.
121+
landmarks Detects landmarks in the file.
122+
landmarks-uri Detects landmarks in the file located in Google Cloud
123+
Storage or on the Web.
124+
text Detects text in the file.
125+
text-uri Detects text in the file located in Google Cloud
126+
Storage or on the Web.
127+
logos Detects logos in the file.
128+
logos-uri Detects logos in the file located in Google Cloud
129+
Storage or on the Web.
130+
safe-search Detects unsafe features in the file.
131+
safe-search-uri Detects unsafe features in the file located in Google
132+
Cloud Storage or on the Web.
133+
properties Detects image properties in the file.
134+
properties-uri Detects image properties in the file located in Google
135+
Cloud Storage or on the Web.
136+
web detects web annotations given an image.
137+
web-uri detects web annotations in the file located in google
138+
cloud storage.
139+
crophints detects crop hints in an image.
140+
crophints-uri detects crop hints in the file located in google cloud
141+
storage.
142+
fulltext extracts full text from an image.
143+
fulltext-uri extracts full text in the file located in google cloud
144+
storage.
145+
146+
optional arguments:
147+
-h, --help show this help message and exit
148+
149+
85150
86151
87152
The client library
@@ -99,4 +164,4 @@ to `browse the source`_ and `report issues`_.
99164
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
100165
101166
102-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
167+
.. _Google Cloud SDK: https://cloud.google.com/sdk/

‎vision/cloud-client/README.rst.in

Copy file name to clipboardExpand all lines: vision/cloud-client/README.rst.in
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ product:
44
name: Google Cloud Vision API
55
short_name: Cloud Vision API
66
url: https://cloud.google.com/vision/docs
7-
description: >
7+
description: >
88
`Google Cloud Vision API`_ allows developers to easily integrate vision
99
detection features within applications, including image labeling, face and
1010
landmark detection, optical character recognition (OCR), and tagging of
@@ -17,5 +17,8 @@ setup:
1717
samples:
1818
- name: Quickstart
1919
file: quickstart.py
20+
- name: Detect
21+
file: detect.py
22+
show_help: True
2023

2124
cloud_client_library: true

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.