Skip to content

Commit cac172b

Browse files
authored
fix: use page.bounding_box when feature is page
Closes #2702
1 parent 8d17455 commit cac172b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vision/cloud-client/document_text/doctext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_document_bounds(image_file, feature):
8686
bounds.append(block.bounding_box)
8787

8888
if (feature == FeatureType.PAGE):
89-
bounds.append(block.bounding_box)
89+
bounds.append(page.bounding_box)
9090

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

0 commit comments

Comments
 (0)