From cac172bc181dfcc1e14c972ea939013e90641a51 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Thu, 9 Jan 2020 16:06:20 -0800 Subject: [PATCH] fix: use `page.bounding_box` when feature is page Closes #2702 --- vision/cloud-client/document_text/doctext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/cloud-client/document_text/doctext.py b/vision/cloud-client/document_text/doctext.py index 6bffc7a1dbdb..bfeee4e20a8a 100644 --- a/vision/cloud-client/document_text/doctext.py +++ b/vision/cloud-client/document_text/doctext.py @@ -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]