GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Vision] add a new function 'detect_all' in image.py · Issue #3771 · googleapis/google-cloud-python

[Vision] add a new function 'detect_all' in image.py #3771

New issue
Copy link
New issue
Copy link
Closed
Closed
[Vision] add a new function 'detect_all' in image.py#3771
Copy link
Assignees
lukesneeringer
Labels
api: visionIssues related to the Cloud Vision API.

Description

@bryanyang0528
bryanyang0528
opened on Aug 9, 2017
Issue body actions

There is a function detect in image.py for detecting multiple feature types. Could we add a function called detect_all to detect all feature types at one time? This is my proposal:

    def detect_all(self, limit=10):
        """Detect multiple feature types.

        :type limit: int
        :param limit: The number of faces to try and detect.

        :rtype: list
        :returns: List of
                  :class:`~google.cloud.vision.entity.EntityAnnotation`.
        """

        features = [Feature(x, limit) for x in FeatureTypes.__dict__.keys() if x[:1] != '_']
        annotations = self.detect(features)
        return annotations[0]

Activity

  1. lukesneeringer commented on Aug 9, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 9, 2017
    Contributor
    More actions

    Hi @bryanyang0528,
    Thanks for reporting.

    I have good news. :-) This exists (in the newest version), and it is spelled annotate_image. Just send a request with features unspecified, and we specify the list of "all of them" for you.

    Thanks for using the Vision API!

  2. lukesneeringer
    closed this as completedon Aug 9, 2017
  3. bryanyang0528 commented on Aug 9, 2017

    @bryanyang0528
    bryanyang0528
    on Aug 9, 2017
    ContributorAuthor
    More actions

    Hi @lukesneeringer Thank you for quick reply. Looking forward to see the new version :)

  4. dhermes
    added
    api: visionIssues related to the Cloud Vision API.
    on Sep 27, 2017
  5. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  6. parthea
    added a commit that references this issue on Oct 21, 2023

    move monitoring samples from python-docs-samples (#51)

    d95f563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: visionIssues related to the Cloud Vision API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.