Skip to content

Issue in vision api document text detection example #2702

Closed
@mfarberbrodsky

Description

@mfarberbrodsky

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.

Metadata

Metadata

Assignees

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