Skip to content

Commit

Permalink
fix: use page.bounding_box when feature is page
Browse files Browse the repository at this point in the history
Closes #2702
  • Loading branch information
busunkim96 authored Jan 10, 2020
1 parent 8d17455 commit cac172b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision/cloud-client/document_text/doctext.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_document_bounds(image_file, feature):
bounds.append(block.bounding_box)

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

# The list `bounds` contains the coordinates of the bounding boxes.
# [END vision_document_text_tutorial_detect_bounds]
Expand Down

0 comments on commit cac172b

Please sign in to comment.