Skip to content

Commit 31e7748

Browse files
authored
Add print output to crop hints tutorial (#1797)
1 parent 9ac8b46 commit 31e7748

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vision/cloud-client/crop_hints/crop_hints.py

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def draw_hint(image_file):
6767
vects[2].x, vects[2].y,
6868
vects[3].x, vects[3].y], None, 'red')
6969
im.save('output-hint.jpg', 'JPEG')
70+
print('Saved new image to output-crop.jpg')
7071
# [END vision_crop_hints_tutorial_draw_crop_hints]
7172

7273

@@ -79,6 +80,7 @@ def crop_to_hint(image_file):
7980
im2 = im.crop([vects[0].x, vects[0].y,
8081
vects[2].x - 1, vects[2].y - 1])
8182
im2.save('output-crop.jpg', 'JPEG')
83+
print('Saved new image to output-crop.jpg')
8284
# [END vision_crop_hints_tutorial_crop_to_hints]
8385

8486

0 commit comments

Comments
 (0)