Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning up docs and fixing typos #2754

Merged
merged 1 commit into from
Nov 29, 2016

Conversation

daspecster
Copy link
Contributor

There will be more for this to come, but I just wanted to get it accurate to the library.

As I add the features back, I will add them to the docs again.

@daspecster daspecster added docs api: vision Issues related to the Cloud Vision API. labels Nov 18, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 18, 2016
@daspecster daspecster mentioned this pull request Nov 18, 2016
10 tasks
Detecting a face or faces in an image.
For a list of the possible facial landmarks
see: https://cloud.google.com/vision/reference/rest/v1/images/annotate#type_1
:meth:`detect_faces()` will search for faces in an image and return the image

This comment was marked as spam.


For a list of all possible facial landmark types
see: https://cloud.google.com/vision/reference/rest/v1/images/annotate#type_1

This comment was marked as spam.

Image labels are a way to help categorize the contents of an image.
If you have an image with a car, person and a dog it, label detection will
attempt to identify those objects.
:meth:`detect_labels()` will attempt to label objects in an image.

This comment was marked as spam.

If you have an image with a car, person and a dog it, label detection will
attempt to identify those objects.
:meth:`detect_labels()` will attempt to label objects in an image.
If you there is a car, person and a dog in the image, label detection will

This comment was marked as spam.

This comment was marked as spam.

:meth:`detect_labels()` will attempt to label objects in an image.
If you there is a car, person and a dog in the image, label detection will
attempt to identify those objects and score the level of certainty from
0.0-1.0.

This comment was marked as spam.


- adult: Represents the adult contents likelihood for the image.
- spoof: Spoof likelihood. The likelihood that an obvious modification was made
to the image's canonical version to make it appear funny or offensive.

This comment was marked as spam.

This comment was marked as spam.

- spoof: Spoof likelihood. The likelihood that an obvious modification was made
to the image's canonical version to make it appear funny or offensive.
- medical: Likelihood this is a medical image.
- violence: Violence likelihood.

This comment was marked as spam.

This comment was marked as spam.


Text Detection
~~~~~~~~~~~~~~

Detecting text with ORC from an image.
:meth:`detect_text()` performs OCR to find text in the image.

This comment was marked as spam.

>>> from google.cloud import vision
>>> client = vision.Client()
>>> image = client.image(source_uri='gs://my-storage-bucket/image.jpg')
>>> logos = image.detect_logos(limit=10)

This comment was marked as spam.

>>> image = client.image(source_uri='gs://my-test-bucket/image.jpg')
>>> features = [Feature(FeatureTypes.FACE_DETECTION, 5),
... Feature(FeatureTypes.LOGO_DETECTION, 3)]
>>> annotations = image.detect(features)

This comment was marked as spam.

This comment was marked as spam.

@daspecster daspecster force-pushed the vision-docs-cleanup branch 2 times, most recently from 91e8880 to c7a2658 Compare November 23, 2016 17:50
@daspecster
Copy link
Contributor Author

Bump, I have a branch for adding image(filename='myfile.jpg') but I would like to get this and #2770 in first if possible.

Detecting a face or faces in an image.
For a list of the possible facial landmarks
see: https://cloud.google.com/vision/reference/rest/v1/images/annotate#type_1
:meth:`detect_faces` will search for faces in an image and return the

This comment was marked as spam.

>>> safe_search = image.detect_safe_search()
>>> safe_search[0].adult
'VERY_UNLIKELY'
>>> safe_search[0].spoof

This comment was marked as spam.

@daspecster
Copy link
Contributor Author

Squashed!

@daspecster daspecster merged commit f0950ca into googleapis:master Nov 29, 2016
@daspecster daspecster deleted the vision-docs-cleanup branch November 29, 2016 21:11
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
parthea pushed a commit that referenced this pull request Oct 21, 2023
…oogleCloudPlatform/python-docs-samples#2754)

* automl: video beta move model samples from branch to master

* Fix region tag

Co-authored-by: Leah E. Cole <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants