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 — Issue in vision api document text detection example · Issue #2702 · GoogleCloudPlatform/python-docs-samples

Issue in vision api document text detection example #2702

New issue
Copy link
New issue
Copy link
Closed
#2705
Closed
Issue in vision api document text detection example#2702
#2705
Copy link
Assignees
nnegrey
Labels
api: visionIssues related to the Cloud Vision API.type: questionRequest for information or clarification. Not an issue.

Description

@mfarberbrodsky
mfarberbrodsky
opened on Jan 9, 2020
Issue body actions

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/vision/cloud-client/document_text/doctext.py

Did you change the file? If so, how?

No.

Describe the issue

Here are lines 88, 89 of this file:

        if (feature == FeatureType.PAGE):
            bounds.append(block.bounding_box)

Here, in case the feature requested is the page - the block's bounding box is added, instead of the page's. This needs to be changed to page.bounding_box.

Activity

  1. blunderbuss-gcf
    assigned
    busunkim96
    on Jan 9, 2020
  2. busunkim96
    added a commit that references this issue on Jan 10, 2020

    fix: use `page.bounding_box` when feature is page

    This issue will close once commit cac172b is merged into the 'main' branch.
    cac172b
  3. busunkim96
    added
    api: visionIssues related to the Cloud Vision API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 10, 2020
  4. busunkim96
    assigned
    nnegrey
    and unassigned
    busunkim96
    on Jan 10, 2020
  5. busunkim96
    added
    type: questionRequest for information or clarification. Not an issue.
    and removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 10, 2020
  6. nnegrey commented on Jan 10, 2020

    @nnegrey
    nnegrey
    on Jan 10, 2020
    Contributor
    More actions

    @busunkim96, has a fix in this PR #2705.

    Page doesn't actually have a bounding_box field, so we'll remove that from the tutorial.
    https://cloud.google.com/vision/docs/reference/rpc/google.cloud.vision.v1#google.cloud.vision.v1.Page

  7. nnegrey
    closed this as completedon Jan 10, 2020
  8. leahecole
    added a commit that references this issue on Jan 10, 2020

    fix: get bounds for blocks instead of pages (#2705)

    This issue will close once commit a8d3a1b is merged into the 'main' branch.
    a8d3a1b
  9. arbrown
    added a commit that references this issue on Nov 14, 2022

    chore: move samples from python-docs-sample (#45)

    This issue will close once commit 9f24bc2 is merged into the 'main' branch.
    9f24bc2
  10. dandhlee
    added a commit that references this issue on Nov 15, 2022

    chore: move samples from python-docs-sample (#45)

    This issue will close once commit 00c2a5f is merged into the 'main' branch.
    00c2a5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nnegrey
    nnegrey

Labels

api: visionIssues related to the Cloud Vision API.type: questionRequest for information or clarification. Not an issue.

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.